2026-02-11 21:43:05 +00:00
|
|
|
# Development
|
|
|
|
|
|
|
|
|
|
This section is for contributors developing Mission Control locally.
|
|
|
|
|
|
2026-02-11 22:52:47 +00:00
|
|
|
## Recommended workflow (fast loop)
|
|
|
|
|
|
|
|
|
|
Run Postgres in Docker, run backend + frontend on your host.
|
|
|
|
|
|
|
|
|
|
### 1) Start Postgres
|
2026-02-11 21:43:05 +00:00
|
|
|
|
|
|
|
|
From repo root:
|
|
|
|
|
|
2026-02-11 22:52:47 +00:00
|
|
|
```bash
|
|
|
|
|
cp .env.example .env
|
|
|
|
|
docker compose -f compose.yml --env-file .env up -d db
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 2) Run the backend (dev)
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd backend
|
|
|
|
|
cp .env.example .env
|
|
|
|
|
|
|
|
|
|
uv sync --extra dev
|
|
|
|
|
uv run uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Verify:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
curl -f http://localhost:8000/healthz
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 3) Run the frontend (dev)
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd frontend
|
|
|
|
|
cp .env.example .env.local
|
|
|
|
|
npm install
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Open http://localhost:3000.
|
|
|
|
|
|
|
|
|
|
## Useful repo-root commands
|
|
|
|
|
|
2026-02-11 21:43:05 +00:00
|
|
|
```bash
|
|
|
|
|
make help
|
|
|
|
|
make setup
|
|
|
|
|
make check
|
|
|
|
|
```
|
|
|
|
|
|
2026-02-11 22:52:47 +00:00
|
|
|
- `make setup`: sync backend + frontend deps
|
|
|
|
|
- `make check`: lint + typecheck + tests + build (closest CI parity)
|
|
|
|
|
|
|
|
|
|
## Related docs
|
|
|
|
|
|
|
|
|
|
- [Testing](../testing/README.md)
|
|
|
|
|
- [Release checklist](../release/README.md)
|