All Templates / Starters
Heavyweight - FastAPI
FastAPI Template for Large Projects
Postgres
railwayapp-templates/postgres-ssl:latest
Just deployed
/var/lib/postgresql/data
heavyweight-fastapi-agqn
GrandGaleTechnologies/heavyweight-fastapi
Just deployed
This repository provides a robust template for creating powerful FastAPI applications that leverage Postgres and Alembic. Inspired by Radoslav Georgiev's Django Structure for Scale lecture and my own personal experience, this template offers a structured approach to building scalable web applications.
.vscode
alembic/
app/
common/
__init__.py
dependencies.py
paginators.py
regex.py
schemas.py
security.py
types.py
config/
__init__.py
database.py
settings.py
example_module/
__init__.py
apis.py
models.py
schemas.py
selectors.py
services.py
__init__.py
main.py
.gitignore
alembic.ini
docker-compose.yml
Dockerfile
env_sample.txt
railway.toml
requirements.txt
start.sh
.vscode: Configuration files for Visual Studio Code.
alembic/: Contains Alembic settings and migrations.
config/: Holds project settings.
SECRET_KEY
from the default value on Railway.app/: The main FastAPI project directory.
common/::
config/: Holds project settings.
SECRET_KEY
from the default value on Railway.example_module/: An Example of how you might structure your different modules/apps, doing it this way makes it easy to decouple/seggregate
user_create
, user_login
, and user_details
.main.py: Entry point of the application
.gitignore: This specifies which folders/files to not push to github
env_sample.txt: Sample environment variable list. Create a .env
file and provide values.
$ py -m venv .venv
$ .venv\Scripts\activate
NOTE: If you are using VsCode and you see a popup that says use env as workspace env then click yes$ pip install -r requirements.txt
docker-compose up
Create a .env
file and input environment variables.
Initialize database tables:
alembic upgrade head
fastapi dev
In production use:
fastapi run
We welcome contributions from the community to make this FastAPI Starter Template even better. If you have ideas for improvements, new features, or bug fixes, feel free to:
By contributing, you help make this template more valuable for developers building FastAPI applications. Together, we can create a robust foundation for large-scale projects. Thank you for your support!
For detailed information, refer to the following resources:
If you have any questions or suggestions, feel free to reach out to me: (P.S I am looking for a job, i consult and i tutor :)
Template Content
heavyweight-fastapi-agqn
GrandGaleTechnologies/heavyweight-fastapiDetails
GrandGale Technologies
Created on Aug 31, 2023
106 total projects
38 active projects
67% success on recent deploys
Python, Mako, Dockerfile, Shell
Starters
More templates in this category
Django Monolith
A Django app connected to a Postgres database with Celery and Celery Beat.
Odogwu Machalla's Projects
38