Skip to content

Commit 461101e

Browse files
committed
docs: updated README
1 parent 6544e55 commit 461101e

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

ui/README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,48 @@
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.

0 commit comments

Comments
 (0)