In this projects I built some features related to restaurants recipes.
- Python ^3.9
- Poetry https://python-poetry.org/docs/configuration/
- Docker
- Docker compose
Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. It's like a pip + venv, all together.
Add a .env file with the following variables:
POSTGRES_DB=<database name>
POSTGRES_USER=<database user>
POSTGRES_PASSWORD=<database password>
Activate virtual environment
poetry shell
Install dependencies
poetry install
Up database
docker-compose up db -d
Run application
python manage.py
Run application
docker-compose up -d