Skip to content

The project blueprint based on FastAPI. Can be used to save time when creating a new application.

Notifications You must be signed in to change notification settings

ViAchKoN/fastapi-project-blueprint

Repository files navigation

FastApi Project Blueprint


Description

The project blueprint based on FastAPI. It already includes examples of migrations, tests and API. It can be cloned and modified according to the requirements.


How to run

Set env variables in .env file

Open a Terminal window and run:

echo "DATABASE_USERNAME=postgres" >> .env
echo "DATABASE_PASSWORD=postgres" >> .env
echo "DATABASE_PORT=5432" >> .env
echo "DATABASE_NAME=project_base" >> .env

Python:

python3 -m venv .venv

source .venv/bin/activate

pip install poetry

poetry install

alembic upgrade head

uvicorn core.main:app --host 0.0.0.0

Docker

docker-compose up -d

#use --build flag if you want to rebuild image after changes

docker-compose up --build

About

The project blueprint based on FastAPI. Can be used to save time when creating a new application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published