minimalistic-fastapi
Simple but complete and scalable FastAPI & PostgreSQL API.
minimalistic-fastapi-template
luchog01/minimalistic-fastapi-template
Just deployed
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
What's Included
- ๐ Complete CRUD operations for heroes
- ๐ Async SQLAlchemy with PostgreSQL
- ๐ Automatic Alembic migrations
- ๐๏ธ Clean architecture with repository pattern
- โ ๏ธ Custom exception handling
- ๐ CI and testing pipeline
- ๐งน Linter setup with pre-commit hooks
- ๐ One-click Railway deployment
Project Structure ๐
api/
โโโ core/ # Core functionality
โ โโโ config.py # Environment and app configuration
โ โโโ database.py # Database connection and sessions
โ โโโ exceptions.py # Global exception handlers
โ โโโ logging.py # Logging configuration
โ โโโ security.py # Authentication and security
โโโ src/
โ โโโ heroes/ # Heroes module
โ โ โโโ models.py # Database models
โ โ โโโ repository.py # Data access layer
โ โ โโโ routes.py # API endpoints
โ โ โโโ schemas.py # Pydantic models
โ โโโ users/ # Users module
โ โโโ models.py # User models
โ โโโ repository.py # User data access
โ โโโ routes.py # User endpoints
โ โโโ schemas.py # User schemas
โโโ utils/ # Utility functions
โโโ main.py # Application entry point
Note: Railway will automatically detect the Python requirements and set up the necessary infrastructure.
Template Content
minimalistic-fastapi-template
luchog01/minimalistic-fastapi-template