A scalable FastAPI application with PostgreSQL integration, following the repository pattern for clean architecture. This project includes JWT-based authentication, secure password hashing, and manual database migrations.
- FastAPI framework for building APIs
- PostgreSQL as the database
- JWT authentication and password hashing
- Organized repository pattern for database operations
- Manual migrations for database schema changes
- Clone the repository and navigate to the project folder.
- Install dependencies:
pip install -r requirements.txt
- Set up your environment variables in
.env(refer to.env.samplefor structure). - Run the app with the following command:
python run.py
The app will be live at http://127.0.0.1:8000 with interactive API docs at /docs.