This is the repo for the meal web application for our P7 project, it includes all submodules for the application.
To develop on the application do the steps in the setup section and then develop on each submodule and commit from there to test the application use docker-compose with the docker-compose.yaml file.
run the create_data.py script to create test data, remember to pip install -r requirements.txt:
python ./scripts/create_data.py -o ./database/data.sqlTo build and start docker in the terminal with output:
docker compose -f docker-compose.yaml build
docker compose -f docker-compose.yaml upStart up in background
docker compose -f docker-compose.yaml up -dshutdown compose:
docker compose downTo pull all the submodules use:
git submodule update --init --recursiveTo update all submodules to latest commit:
git submodule update --recursive --remotefetch commits:
git submodule update --recursive --remote --fetchTo deploy the server use the Docker-Swarm-Example.yaml to create your own.
use the name Docker-Swarm.yaml as this file name is ignored so that secrets in the file wont be pushed to the repo.
remember to create a SSL certificate if using https.