Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 768 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 768 Bytes

brackend

install docker and docker-compose

run docker-compose build

run docker-compose up in the same directory as docker-compose.yml, and then in another tab or process curl localhost:8000/api/hello/

you should get a token back, which shows you have the api up locally

make sure to do docker-compose down and docker-compose build when you're making changes

Setting up PyCharm

  • install poetry
  • poetry config --local virtualenvs.in-project true
  • run poetry install
  • set PyCharm Python interpreter from Preferences > Project > Python Interpreter

DB Migrations

With the docker container for the DB running, and the virtual env sourced, use

alembic revision --autogenerate -m "your message here"

to create a new migration