- Small app in PHP/Symfony that has one table/entity
products
with the following fields: id
, name
, description
, and price
- Default sample products into the DB
- RESTful endpoints to Create, Read, Update, Delete
- Logical Delete, not physical
- Small JavaScript app that lists the products and allows the user to delete them
- Docker
>= 18.x
- Docker Compose
>= 1.24.x
- PHP 7.1.33
- Composer
- Git
- Bower
- SQLite
- AngularJS v1.7.9
- Build the containers with:
- Install PHP depencencies with:
$ docker-compose exec php composer install
- Install Javascript depencencies with:
$ docker-compose exec -w /usr/src/app/public php bower install --allow-root
$ docker-compose exec php ./bin/console doctrine:schema:update --force
$ docker-compose exec php ./bin/console doctrine:fixtures:load --purge-with-truncate --no-interaction