File tree Expand file tree Collapse file tree 1 file changed +48
-2
lines changed Expand file tree Collapse file tree 1 file changed +48
-2
lines changed Original file line number Diff line number Diff line change 1- # leios-visual
2- Visualizations for Leios data.
1+ # Rust Simulation UI - Web App
2+
3+ This UI web app is designed to read and display simulation traces generated by
4+ the ` sim-rs ` project.
5+
6+ ## Prerequisites
7+
8+ Before you can run the UI, ensure you have the following installed:
9+
10+ - [ Bun] ( https://bun.sh/ ) - A fast JavaScript runtime.
11+
12+ ## Setup Instructions
13+
14+ 1 . ** Install Bun**
15+
16+ Follow the instructions on the [ Bun website] ( https://bun.sh/ ) to install Bun
17+ on your system.
18+
19+ 2 . ** Generate a Trace**
20+
21+ Before running the UI, you need to generate a trace using the ` sim-rs `
22+ simulation. Navigate to the ` sim-rs ` directory and run the following command:
23+
24+ ``` bash
25+ cargo run --release test_data/thousand.toml output/messages.jsonl -s 30
26+ ```
27+
28+ This command will generate a trace file at ` output/messages.jsonl ` .
29+
30+ 3 . ** Run the UI**
31+
32+ With Bun installed and the trace generated, navigate to the UI project
33+ directory and start the development server:
34+
35+ ``` bash
36+ bun dev
37+ ```
38+
39+ This will launch the simulation in your browser.
40+
41+ ## Additional Information
42+
43+ - Ensure that the path to the trace file (` output/messages.jsonl ` ) is correctly
44+ set in the UI project. This is typically defined in a utility file such as
45+ ` ui/src/app/api/utils.ts ` .
46+
47+ - If you encounter any issues, check the console for error messages and ensure
48+ all dependencies are correctly installed.
You can’t perform that action at this time.
0 commit comments