Related documentation and links about this template.
FastAPI: Modern web framework for building APIs with Python.
Pydantic: Data validation library for Python.
Motor: Asynchronous Python driver for MongoDB.
-
Create a .env file from template.env
-
Run command 'docker compose up --build'
-
Enter here
-
Create a virtual enviroment with command 'python3 -m venv tutorial-env' and python 3.10
-
Execute the enviroment with command 'source tutorial-env/bin/activate'
-
Install production requirements with command 'pip install -r requirements.txt'
-
Install develop requirements with command 'pip install -r requirements_dev.txt'
-
Run tests with command 'pytest test/'
You can analyse your code best practices after install develop requirements with command 'ruff check' in the root folder of the project.