tomasemilio / FastAPI-Boilerplate

FastAPI Starter: A simple and intuitive example repository showcasing basic functionality and best practices for building web APIs with FastAPI. Use this as a template or reference for accelerating your FastAPI projects
MIT License
40 stars 3 forks source link

FastAPI-Boilerplate

FastAPI Starter: A simple and intuitive example repository showcasing basic functionality and best practices for building web APIs with FastAPI. Use this as a template or reference for accelerating your FastAPI projects

How to get started

python3.12 -m venv env
source env/bin/activate

Create a .env file following the example example.env

app/config.py has 3 sets of configurations: Test, Dev, and Prod.

touch .env

Run the following command to install dependencies. runtime.txt specifies the runtime version used.

bash reset.sh

Run the app locally

python run.py

Run tests.

We use the TestConfig to run tests

bash test.sh

Features