Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (22 loc) · 716 Bytes

README.md

File metadata and controls

40 lines (22 loc) · 716 Bytes

example-starlite-saqlalchemy

Example API built on starlite-saqlalchemy

Setup

  • $ poetry install
  • $ cp .env.example .env
  • $ docker-compose up -d
  • $ poetry run alembic upgrade head

Run

$ poetry run run-app

Development

Install dev dependencies:

$ python -m pip install -r dev.requirements.txt

Test

$ tox

Migrations

Ensure the database service is up

$ docker-compose up -d

Revision

$ poetry run alembic revision --autogenerate -m "revision description"

Migration

$ poetry run alembic upgrade head