Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 881 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 881 Bytes

fastapi-gino-uvicorn

This is a dockerized project template for building awesome restapis making use of FastApi, Gino and Uvicorn.

Installation

Clone the repository and install poetry dependencies

$ git clone https://github.com/Gcunhaa/fastapi-gino-uvicorn.git
$ poetry install

Run

Update develop-demo.env file then run docker compose:

$ sudo docker-compose -f setup/docker/docker-compose.dev.yml up --build

Alembic migrations

You should edit the default settings for the PGSQL connection(core.settings.py) for some trash PGSQL server so you could do the migrations.

To prepare the migration:

poetry shell
PYTHONPATH=src alembic revision --autogenerate -m 'First migration'

Then the migration will be auto executed in the next docker startup.

Todos

  • Make commands
  • Change migration actual style
  • Add production configs