|
6 | 6 | Built using Emilk's [eframe](https://github.com/emilk/egui/tree/master/crates/eframe), templite repo. Eframe is a framework for writing apps using [egui](https://github.com/emilk/egui/).
|
7 | 7 |
|
8 | 8 |
|
9 |
| -### Running localy |
10 |
| - |
11 |
| -Make sure you are using the latest version of stable rust by running `rustup update`. |
12 |
| - |
13 |
| -`cargo run --release` |
14 |
| -### Web Locally |
15 |
| - |
16 |
| -You can compile your app to [WASM](https://en.wikipedia.org/wiki/WebAssembly) and publish it as a web page. |
17 |
| - |
18 |
| -We use [Trunk](https://trunkrs.dev/) to build for web target. |
19 |
| -1. Install the required target with `rustup target add wasm32-unknown-unknown`. |
20 |
| -2. Install Trunk with `cargo install --locked trunk`. |
21 |
| -3. Run `trunk serve` to build and serve on `http://127.0.0.1:8080`. Trunk will rebuild automatically if you edit the project. |
22 |
| -4. Open `http://127.0.0.1:8080/index.html#dev` in a browser. See the warning below. |
23 |
| - |
24 |
| -> `assets/sw.js` script will try to cache our app, and loads the cached version when it cannot connect to server allowing your app to work offline (like PWA). |
25 |
| -> appending `#dev` to `index.html` will skip this caching, allowing us to load the latest builds during development. |
26 |
| -
|
27 |
| -### Web Deploy |
28 |
| -1. Just run `trunk build --release`. |
29 |
| -2. It will generate a `dist` directory as a "static html" website |
30 |
| - |
31 |
| - |
32 |
| - |
33 | 9 | ### References and Sources Used:
|
34 | 10 | Rest in peace [John Walker](https://en.wikipedia.org/wiki/John_Walker_(programmer)) his project "CellLab" has proved immensely helpful in my research,
|
35 | 11 | He passed on February 2, 2024. Less than a week before I started working on this project
|
@@ -80,3 +56,28 @@ He passed on February 2, 2024. Less than a week before I started working on this
|
80 | 56 | * [Coding Adventure: Simulating Fluids-Sebastian Lague](https://www.youtube.com/watch?v=rSKMYc1CQHE)
|
81 | 57 | * [Living Machines in TypeScript (Autocell Ep.02)- TsodingDaily](https://www.youtube.com/watch?v=Hz_13P7lRoA)
|
82 | 58 | * [Cellular Automata: Complexity From Simplicity- AceRolla](https://www.youtube.com/watch?v=t_HcBAO_Yas)
|
| 59 | +## Instructions from the original E-Frame Template |
| 60 | +### Running localy |
| 61 | + |
| 62 | +Make sure you are using the latest version of stable rust by running `rustup update`. |
| 63 | + |
| 64 | +`cargo run --release` |
| 65 | +### Web Locally |
| 66 | + |
| 67 | +You can compile your app to [WASM](https://en.wikipedia.org/wiki/WebAssembly) and publish it as a web page. |
| 68 | + |
| 69 | +We use [Trunk](https://trunkrs.dev/) to build for web target. |
| 70 | +1. Install the required target with `rustup target add wasm32-unknown-unknown`. |
| 71 | +2. Install Trunk with `cargo install --locked trunk`. |
| 72 | +3. Run `trunk serve` to build and serve on `http://127.0.0.1:8080`. Trunk will rebuild automatically if you edit the project. |
| 73 | +4. Open `http://127.0.0.1:8080/index.html#dev` in a browser. See the warning below. |
| 74 | + |
| 75 | +> `assets/sw.js` script will try to cache our app, and loads the cached version when it cannot connect to server allowing your app to work offline (like PWA). |
| 76 | +> appending `#dev` to `index.html` will skip this caching, allowing us to load the latest builds during development. |
| 77 | +
|
| 78 | +### Web Deploy |
| 79 | +1. Just run `trunk build --release`. |
| 80 | +2. It will generate a `dist` directory as a "static html" website |
| 81 | + |
| 82 | + |
| 83 | + |
0 commit comments