A personal recipe management and meal planner app.
A demo of the app is available at cookbook.codemu.ch. You will need to register a user account to access it.
- Install the project.
git clone git@github.com:cmvanb/cookbook.git
cd cookbook
python -m venv venv
source venv/bin/activate
pip install -r cookbook/requirements.txt- Initialize the database.
FLASK_APP=cookbook:app flask init-db- Run the local development server.
FLASK_APP=cookbook:app flask --debug run- Alternatively, use the docker dev deployment.
docker compose -f deployment/dev.yml up --build- Navigate to
localhost:5000.
- Run the tests.
coverage run -m pytest- Generate a coverage report.
coverage report- Copy
example.envand rename it to.env.
cp deployment/example.env deployment/.env-
Edit the
.envfile to set the Flask secret key. -
Build and run the image.
docker compose -f deployment/demo.yml up --build