File size: 732 Bytes
3eae4cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frontend/

Frontend ownership and structure.

- Source-managed React frontend lives in [frontend/react](C:/Users/siddh/OPENENV_RL/frontend/react).
- Built with Vite and served by FastAPI at `/ui`.
- UI is now module-based:
  - `Overview`
  - `Simulation Lab`
  - `Training Studio`
  - `Model Comparison`
- Backend APIs remain under `/api/*`.

Local frontend dev:

1. Start backend:
   - `.\.venv313\Scripts\python.exe scripts\run_local.py --host 0.0.0.0 --port 7860`
2. Start Vite dev server:
   - `cd frontend/react`
   - `npm install`
   - `npm run dev`
3. Open:
   - `http://localhost:5173`

Build for backend serving:

- `cd frontend/react`
- `npm run build`

Deployment path:

- UI route: `/ui`
- Asset route: `/ui/assets/*`