A boilerplate for creating fastapi services
- Python 3.13
- UV (a command line tool for managing Python environments)
If you don't have Python 3.13 installed, you can install it via brew:
brew install [email protected]- This project uses UV for dependency management. Ensure it is installed on your system.
- If UV is not installed, you can install it using:
curl -LsSf https://astral.sh/uv/install.sh | sh
OR
brew install uv- Use the official UV installation guide for other installation methods: https://docs.astral.sh/uv/getting-started/installation/
- Verify the installation by using the following command:
uv --versionThis command will install all the dependencies required for the project, including development dependencies:
uv sync
If you ever need to update the dependencies, you can run:
uv sync --upgradeTo use environment variables, you need to create a .env file in the root directory of the project. You can copy the .env.example file and rename it to .env:
cp .env.example .envmake devmake lintmake formatmake testdocker build -t myapp .