- Open VS Code
- Open backend project as DevContainer:
Reopen in Container -> Backend Container
- Wait until VS Code has configured DevContainer – this can take a while
- Add a
.env
files (root: env.example, langgraphstudio: env.example) - Open new terminal in VS Code
- Activate python environment in the terminal via
source .venv/bin/activate
and check viawhich python
- Run tests via
./manage.py test .
- Start development server via
./manage.py runserver
and openhttp://127.0.0.1:8000/api/v1/docs/openapi/v3/
orhttp://127.0.0.1:8000/api/v1/docs/asyncapi/v3/
- Not able to load
.env
: Close the terminal and open it again. Make shure you are in the right environmentwhich python
(source .venv/bin/activate
).
Here are the basics commands for handling the dev database:
- Run
./manage.py makemigrations
- Run
./manage.py migrate
- Run
./manage.py createsuperuser
:{username: cleon, password: thp.F26zeJ}
- Run
./manage.py runscript seed_database