Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DoodleBUGS/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ digest.txt
root.txt
src.txt
public.txt
runtime.txt

node_modules
.DS_Store
Expand All @@ -18,6 +19,7 @@ dist-ssr
coverage
*.local
ztest
tmp

/cypress/videos/
/cypress/screenshots/
Expand Down
32 changes: 32 additions & 0 deletions DoodleBUGS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,35 @@ npm run preview
```

For more information, questions, or to get involved, please contact [@shravanngoswamii](https://github.com/shravanngoswamii) (Ping me on [Julia Slack](https://julialang.slack.com/archives/CCYDC34A0)).

> [!TIP]
> You can generate a standalone Julia script directly from the app: open the navbar → `Connection` → `Generate Standalone Julia Script`.
> The script opens in the right sidebar's Execution panel under the Files tab, where you can copy or download it.

## Backend (Julia) Quick Start

The DoodleBUGS app can connect to a local Julia backend for running models.

1. Clone this repository and open a terminal at the repo root.
2. Instantiate backend dependencies (first time only):

```bash
julia --project=DoodleBUGS/runtime -e "using Pkg; Pkg.instantiate()"
```

3. Start the backend server (defaults to http://localhost:8081):

```bash
julia --project=DoodleBUGS/runtime DoodleBUGS/runtime/server.jl
```

4. In the DoodleBUGS app, open the navbar → `Connection` → set URL to `http://localhost:8081` → `Connect`.

Notes:
- Keep the backend terminal open while using the app.
- If the port is in use or blocked by a firewall, change the port in `DoodleBUGS/runtime/server.jl` and reconnect (the port is currently set to 8081 at the end of the file).

#### Troubleshooting

- To verify connectivity, open your browser at `http://localhost:8081/api/health` (replace 8081 if you changed the port). A healthy server returns `{ "status": "ok" }`.
- If the health check fails, ensure the server is running, the URL/port are correct, and no firewall or VPN is blocking the port. Check the backend terminal output for errors.
280 changes: 55 additions & 225 deletions DoodleBUGS/public/examples/rats/data.json
Original file line number Diff line number Diff line change
@@ -1,227 +1,57 @@
{
"data": {
"N": 30,
"T": 5,
"x": [
8.0,
15.0,
22.0,
29.0,
36.0
],
"xbar": 22,
"Y": [
[
151,
199,
246,
283,
320
],
[
145,
199,
249,
293,
354
],
[
147,
214,
263,
312,
328
],
[
155,
200,
237,
272,
297
],
[
135,
188,
230,
280,
323
],
[
159,
210,
252,
298,
331
],
[
141,
189,
231,
275,
305
],
[
159,
201,
248,
297,
338
],
[
177,
220,
260,
309,
331
],
[
134,
182,
220,
260,
295
],
[
160,
208,
261,
313,
352
],
[
143,
188,
220,
273,
314
],
[
154,
200,
244,
289,
325
],
[
161,
218,
266,
304,
340
],
[
142,
184,
223,
262,
298
],
[
156,
203,
243,
283,
317
],
[
157,
212,
259,
307,
336
],
[
152,
203,
245,
286,
324
],
[
154,
205,
253,
298,
334
],
[
139,
190,
225,
267,
302
],
[
146,
196,
247,
289,
321
],
[
161,
215,
254,
293,
332
],
[
153,
207,
256,
303,
345
],
[
149,
198,
245,
287,
324
],
[
144,
192,
242,
289,
326
],
[
162,
211,
262,
315,
357
],
[
157,
202,
242,
281,
316
],
[
150,
204,
256,
298,
335
],
[
151,
202,
248,
290,
325
],
[
163,
216,
265,
307,
342
]
]
},
"inits": {}
"data": {
"N": 30,
"T": 5,
"x": [8.0, 15.0, 22.0, 29.0, 36.0],
"xbar": 22,
"Y": [
[151, 199, 246, 283, 320],
[145, 199, 249, 293, 354],
[147, 214, 263, 312, 328],
[155, 200, 237, 272, 297],
[135, 188, 230, 280, 323],
[159, 210, 252, 298, 331],
[141, 189, 231, 275, 305],
[159, 201, 248, 297, 338],
[177, 236, 285, 350, 376],
[134, 182, 220, 260, 296],
[160, 208, 261, 313, 352],
[143, 188, 220, 273, 314],
[154, 200, 244, 289, 325],
[171, 221, 270, 326, 358],
[163, 216, 242, 281, 312],
[160, 207, 248, 288, 324],
[142, 187, 234, 280, 316],
[156, 203, 243, 283, 317],
[157, 212, 259, 307, 336],
[152, 203, 246, 286, 321],
[154, 205, 253, 298, 334],
[139, 190, 225, 267, 302],
[146, 191, 229, 272, 302],
[157, 211, 250, 285, 323],
[132, 185, 237, 286, 331],
[160, 207, 257, 303, 345],
[169, 216, 261, 295, 333],
[157, 205, 248, 289, 316],
[137, 180, 219, 258, 291],
[153, 200, 244, 286, 324]
]
},
"inits": {
"alpha": [
250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0,
250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0,
250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0, 250.0
],
"beta": [
6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0,
6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0,
6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0
],
"alpha.c": 150.0,
"beta.c": 10.0,
"tau.c": 1.0,
"alpha.tau": 1.0,
"beta.tau": 1.0
}
}
Loading