mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2024-11-01 09:03:10 +01:00
Added docker
This commit is contained in:
parent
4990e686d1
commit
c2fe35a8a5
11
README.md
11
README.md
@ -1,6 +1,7 @@
|
|||||||
# coding-challenge-online-shop
|
# coding-challenge-online-shop
|
||||||
Coding challenge for a online shop
|
Coding challenge for a online shop
|
||||||
# requirements
|
## tasks
|
||||||
|
### requirements
|
||||||
1. Create a web application with PHP which works like a really small online shop.
|
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.
|
2. Create a database with at least 20 products automatically per script.
|
||||||
3. Create a product listing which display all products from the database. The following information are required:
|
3. Create a product listing which display all products from the database. The following information are required:
|
||||||
@ -19,10 +20,16 @@ method2.
|
|||||||
10. Store the order at the database.
|
10. Store the order at the database.
|
||||||
11. Add a color filter to the product list. The user should be able to filter the listing with the
|
11. Add a color filter to the product list. The user should be able to filter the listing with the
|
||||||
existing colors.
|
existing colors.
|
||||||
# specifications
|
### specifications
|
||||||
- Please use PHP, MySQL and HTML. You can also use CSS, JavaScript, Bootstrap and jQuery.
|
- Please use PHP, MySQL and HTML. You can also use CSS, JavaScript, Bootstrap and jQuery.
|
||||||
- Save your code online at github.
|
- Save your code online at github.
|
||||||
- Please use an autoloader and namespaces.
|
- Please use an autoloader and namespaces.
|
||||||
- Don’t use a ready to go framework. Build the application from the scratch.
|
- Don’t use a ready to go framework. Build the application from the scratch.
|
||||||
- Use transactions if it makes sense.
|
- Use transactions if it makes sense.
|
||||||
- Please cover your code with unit tests.
|
- Please cover your code with unit tests.
|
||||||
|
|
||||||
|
## start
|
||||||
|
To run the program execute
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mysql:5.7
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: my_secret_pw_shh
|
||||||
|
MYSQL_DATABASE: test_db
|
||||||
|
MYSQL_USER: devuser
|
||||||
|
MYSQL_PASSWORD: devpass
|
||||||
|
ports:
|
||||||
|
- "9906:3306"
|
||||||
|
web:
|
||||||
|
image: php:7.2.2-apache
|
||||||
|
container_name: php_web
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- ./src/:/var/www/html/
|
||||||
|
ports:
|
||||||
|
- "8100:80"
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
Loading…
Reference in New Issue
Block a user