| Container Name | Image | Purpose |
|---|---|---|
| mongo | mongo:6.0.5 | database |
| backend | python:3.11.2-slim-bullseye | backend (FastAPI) |
| frontend | node:18.2-alpine3.15/nginx:1.23.3-alpine | vue.js application |
- Open cmd/terminal in project root (where this file is)
- run
bin/dev start --buildto build and run the docker containers- You might have to give exec rights to
bin/devfile
- You might have to give exec rights to
- Once backend and frontend containers are running, use localhost:3000 to display the frontend
- To stop Docker containers run
bin/dev stop- To stop and delete volumes run
bin/dev dump
- To stop and delete volumes run
- Create development data for testing run
bin/dev dev_data - To create a shell into a container run
bin/dev shell {container_name}- example:
bin/dev shell mongoto shell into mongo container
- example:
- To run backend tests
bin/test {extra_pytest_args}
Use localhost:8000/docs to interact with API from the browser