Skip to content

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.

  1. 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 .
  1. Install additional dev tools:
bash
pip install pytest mypy ruff uvicorn
  1. Run the backend with uvicorn:
bash
uvicorn app.main:app --reload --port 8000
  1. Open http://localhost:8000/docs to view the automatic API docs.

For more information on FastAPI and ROS 2, visit the ROS 2 docs and the FastAPI docs.

Frontend (React)

  1. Install dependencies and start the dev server:
bash
cd web
npm install
npm run dev
  1. Open the dev URL (default: http://localhost:5173).

Running tests

  • Backend tests: from auto_apms_studio/backend run:
bash
pytest -q
  • Frontend tests: from web/ run:
bash
npm run test

Tip: Run backend on port 8000 and frontend dev server on 5173 while developing both sides.

Released under the Apache-2.0 License.