Skip to content

Latest commit

 

History

History

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Backend

Contribution

Please install DBeaver.

Please install Python 3.11.

Please install Poetry with the official installer.

Please install VSCode and its extensions:

  • Black Formatter
  • isort
  • Python
  • Pylance
  • Even Better TOML
  • Prettier

If you need to switch between Python interpreters:

  • CTRL + SHIFT + P
  • Python: Select Interpreter

To have your Python environment inside your project (optional):

poetry config virtualenvs.in-project true

To create your Python environment and install dependencies:

poetry install

To update dependencies:

poetry update

To clear poetry cache:

poetry cache clear --all .

To run unit tests:

pytest

To start the backend server:

python main.py

Data migrations

To generate migration:

alembic revision --autogenerate

To migrate to head (done on startup):

alembic upgrade head

To downgrade:

alembic downgrade -1