For detailed explanations and to follow along:
- Read the blog post series
- Order the course
pip install poetry(or safer, follow the instructions: https://python-poetry.org/docs/#installation).- Install dependencies
cdinto the directory where thepyproject.tomlis located thenpoetry install. - Run the DB migrations via poetry
poetry run python app/prestart.py(only required once) (Unix users can use the bash script if preferred). - Run the FastAPI server via poetry with the bash script:
poetry run ./run.sh. - Open
http://localhost:8001/.
To stop the server, press CTRL+C.
Make sure you have Docker and Docker Compose installed.
- Run
docker-compose -f docker-compose.local.yml up -d(this will download the postgres image and build the image for the recipe app - takes about 5 mins). - Visit
http://localhost:8001/docs.