If you find this project useful, please consider giving it a star on GitHub! It helps others discover this project and motivates further development.
Ensure you have the following installed:
- Python 3.8+
- pip (Python package manager)
- virtualenv (optional but recommended)
git clone https://github.com/yashsinghviwork/fastapi-boilerplate.git
cd fastapi-boilerplatepython -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtA uvicorn_config.py file is already included for configuring Uvicorn. Run the following command to start the server:
python uvicorn_config.pyYou can configure environment-specific settings using a .env file.
Create a .env file in the project root:
APP_NAME=FastAPI App
DEBUG=True
HOST=0.0.0.0
PORT=8000Once the server is running, access the API docs:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc