FastAPI Template is a project template that provides a good file structure and setup for building FastAPI applications. It includes a pre-configured development environment, production-ready deployment scripts, and SSL configuration options. This template aims to make it easier for developers to start new FastAPI projects with a robust foundation and best practices in mind.
git clone https://github.com/Neko-Nik/FastAPI-Template.git
cd FastAPI-Templatepython3 -m venv virtualenv
source virtualenv/bin/activatepip3 install -r requirements.txtTo run the application locally, using Uvicorn or Gunicorn:
Using Uvicorn: uvicorn api.main:app --reload --port 8086
Using Gunicorn: gunicorn -k uvicorn.workers.UvicornWorker api.main:app
The application will start running on http://localhost:8086.
For production deployment, the template provides docker CI pipeline and docker-compose configuration files for easy deployment.
Contributions are welcome! If you'd like to contribute to FastAPI Template, please follow these steps:
master branch of the original repositoryPlease make sure to follow the existing code style and add tests for any new features or bug fixes.
FastAPI Template is released under the MIT License. You are free to use, modify, and distribute this template for any purpose.