coding-challenge-online-shop/README.md
2018-07-15 17:01:20 +02:00

54 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding-challenge-online-shop
Coding challenge for a online shop
## task
### requirements
1. Create a web application with PHP which works like a really small online shop. ✓
2. Create a database with at least 20 products✓ automatically✓ per script. ✓
3. Create a product listing which display all products from the database. ✓
<br> The following information are required:
- price net and gross &#10003;
- image &#10003;
- product name &#10003;
- color &#10003;
4. Add a “to the basket” button to each product in the listing. &#10003;
5. Make the product basket work and display all products which are in the basket as a list with
small images. &#10003;
6. Create a login and registration with e-mail address, password and a name. &#10003;
7. The login should be session based. &#10003;
8. Create a checkout which is shown when the user is logged in. &#10003;
9. The user should be able to choose between 2 payment methods. &#10003;
<br> Call them method1 &#10003; and
method2 &#10003;.
10. Store the order at the database. &#10003;
11. Add a color filter to the product list.&#10003;
<br> The user should be able to filter the listing with the existing colors. &#10003;
### specifications
- Please use PHP &#10003;, MySQL &#10003; and HTML &#10003;. You can also use CSS, JavaScript, Bootstrap &#10003; and jQuery.
- Save your code online at github. &#10003;
- Please use an autoloader and namespaces. &#10003;
- Dont use a ready to go framework. Build the application from the scratch. &#10003;
- Use transactions if it makes sense. &#10003;
- Please cover your code with unit tests. &#10003;
### time frame
- one weekend &#10003;
## start
To run the program execute:
```bash
bash ./start.sh
```
### Attention
This is a demo program; Everytime when you restart the demo the database will be reset.
### requirements
The start.sh file needs docker and docker-compose.
### access
If you started the application you can access it with a browser on <a href="http://localhost:8100/">localhost:8100</a>.
## test
To run the tests execute:
```bash
bash ./test.sh
```
Tests just exist for the core, the entities and some other files. UnitTest you will find in the directory of the unit.