Package Description
$ dotnet add package masterzdran.fastapi.project.acceleratorA production-ready FastAPI project template featuring:
src/
main.py # FastAPI app entrypoint
config/ # App configuration and settings
authorization/ # Azure AD auth, user/role models
features/ # Modular service features (health, secure, etc.)
observability/ # Logging and tracing setup
static/ # Static assets (e.g., logo, favicon)
tests/ # Unit tests
Dockerfile
docker-compose.yml
requirements.txt
.env / sample.env
.pre-commit-config.yaml
Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install dependencies:
pip install -r requirements.txt
Copy sample.env to .env and fill in required environment variables.
uvicorn src.main:app --reload
/docs/redocdocker build -t fastapi-project .
docker run -p 8000:80 fastapi-project
python -m unittest discover -s tests
.vscode/launch.json).pre-commit install
pre-commit run --all-files
.env (see sample.env)./api/v1/healthcheck/api/v1/secureThis project is licensed under the MIT License.