Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.22 KB

readme.md

File metadata and controls

31 lines (19 loc) · 1.22 KB

How to run

Requirements:

  • Docker

Run docker-compose up -d to start docker containers.

Run docker exec equipmentDemandPlanner_fpm composer install to install dependencies.

Run docker exec -it equipmentDemandPlanner_fpm bin/console doctrine:database:create to created the DB (by default should already be created, otherwise just run this command).

Run docker exec -it equipmentDemandPlanner_fpm bin/console doctrine:migrations:migrate to create the DB schema (when prompt input "yes").

Run docker exec -it equipmentDemandPlanner_fpm bin/console doctrine:fixtures:load to seed the DB with data (when prompt input "yes").

The app should be up and running at this point. Check the following routes.

Routes:

The routes also take an optional query parameter month e.g.

If no month is provided the current calendar month will apply.

Assumption: each month starts with a default stock of 10 equipment pieces per station.