Developer setup
Get started with development! This page explains how to get a working local development environment for backend and frontend work.
Prerequisites
- Python 3.12+
- Node.js + npm
- ROS 2 and AutoAPMS
Backend (FastAPI)
TIP
You must source a ROS 2 workspace with AutoAPMS and install AutoAPMS Studio into that workspace.
- Create and activate a virtual environment and install the package in editable mode:
bash
cd auto_apms_studio/backend
python -m venv .venv
source .venv/bin/activate
pip install -e .- Install additional dev tools:
bash
pip install pytest mypy ruff uvicorn- Run the backend with uvicorn:
bash
uvicorn app.main:app --reload --port 8000- Open
http://localhost:8000/docsto view the automatic API docs.
For more information on FastAPI and ROS 2, visit the ROS 2 docs and the FastAPI docs.
Frontend (React)
- Install dependencies and start the dev server:
bash
cd web
npm install
npm run dev- Open the dev URL (default:
http://localhost:5173).
Running tests
- Backend tests: from
auto_apms_studio/backendrun:
bash
pytest -q- Frontend tests: from
web/run:
bash
npm run testTip: Run backend on port 8000 and frontend dev server on 5173 while developing both sides.