# Getting started Before starting, make sure you have [mise](https://mise.jdx.dev) installed. It manages Python, Node, uv and prek. ```bash mise install prek install uv run manage.py migrate cp .env-default .env uv run manage.py seed_demo_data # Optional: create an admin login uv run manage.py createsuperuser ``` Start the backend and frontend in separate terminals from the project root: ```bash mise run server ``` ```bash mise run frontend-run ``` Vite prints the frontend URL when it starts (normally ; if that port is busy, it selects another). Django runs at ; open the admin directly at or through the frontend dev proxy at the printed Vite URL followed by `/admin/`. The GraphQL API is at ; the frontend uses Vite's proxy for development API requests. To test the frontend against a different backend, set `VITE_DEV_API_PROXY` when starting Vite, for example `VITE_DEV_API_PROXY=https://bbs.neuf.no mise run frontend-run`. This affects the development proxy only; use caution with a live backend, since app changes and submissions may modify production data. To create the admin during data seeding instead, set `BBS_SEED_ADMIN_PASSWORD` for that command; the command only creates a local `admin` superuser if one does not already exist. ## Testing ```bash mise run test ``` ## References - We use JS code generation to work with queries/mutations in our graphql API: ## TODO-old - Larger pictures - Compact GUI for max 768 vertical pixels - Search right of in title