Deploy minimalistic-fastapi
Simple but complete and scalable FastAPI & PostgreSQL API.
minimalistic-fastapi-template
Just deployed
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