|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Directories | |
| e2e-scratch | |
React + Vite + TypeScript frontend for the pintle-injector rocket engine design and optimization pipeline. It talks to the FastAPI backend in ../backend and provides an interactive interface for forward/inverse solving, the multi-layer optimizer, time-series and flight analysis, chamber geometry visualization, and the robust DDP controller.
The UI is organized into tabs (see src/App.tsx), including:
Charts are rendered with recharts; styling uses Tailwind CSS.
The app calls the backend under the /api prefix (API_BASE = '/api' in src/api/client.ts). In development, Vite proxies /api to http://localhost:8000 (see vite.config.ts), where the FastAPI server (backend/main.py) must be running.
The simplest way to run the full stack is the development script in the project root, which starts both the backend and this frontend together:
This launches the FastAPI backend on http://localhost:8000 and the frontend dev server on http://localhost:5173 (it installs frontend dependencies automatically if missing).
To run the frontend on its own (backend must be started separately):
Then open http://localhost:5173.
Node.js 18+ (the frontend uses Vite 5; Node 18.0+ or 20.0+ recommended). See ../STARTUP_GUIDE.md and ../TROUBLESHOOTING.md for setup notes.