Railway

Deploy minimalistic-fastapi

Simple but complete and scalable FastAPI & PostgreSQL API.

Deploy minimalistic-fastapi

minimalistic-fastapi-template

luchog01/minimalistic-fastapi-template

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

More templates in this category

View Template
caring-vibrancy
Deploy and Host caring-vibrancy with Railway

baleocho
View Template
Flask WebSocket Chat
Single file, realtime multi-user websocket chat using flask-socketio

Clement Ochieng
View Template
NEW
all-star-fashion-template
Deploy and Host all-star-fashion-template with Railway

Mai ThΓ nh Duy An