This is a boilerplate project to quickly start a web application using the FastAPI framework.
- High-performance HTTP server based on FastAPI.
- Dependency management using Poetry.
- Docker setup for the development environment.
- Sample FastAPI endpoint to get started.
- Python 3.9 or higher.
-
Clone this repository:
git clone https://github.com/Trusted97/fast-api-boilerplate.git cd fast-api-boilerplate
-
Run the development server using Docker:
docker-compose up --build -d
-
Access the FastAPI application: Open your web browser and go to http://localhost:8000
-
Access the Swagger documentation at http://localhost:8000/docs to interact with the API.
router.py
: Sample FastAPI application and endpoint.pyproject.toml
: Project configuration and dependencies managed by Poetry.docker/dev/Dockerfile
: Docker configuration for the development environment.
Contributions are welcome! Feel free to submit issues and pull requests.
This project is licensed under the MIT License.