aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md34
1 files changed, 33 insertions, 1 deletions
diff --git a/README.md b/README.md
index 272d2dae..6560fbd4 100644
--- a/README.md
+++ b/README.md
@@ -41,4 +41,36 @@ Then
```rs
tauri::Builder::default()
.manage(arc_db)
-``` \ No newline at end of file
+```
+
+## Development
+
+Make sure you have the necessary dependencies installed: https://tauri.app/v1/guides/getting-started/prerequisites
+
+
+Install `npm` dependencies with
+
+```sh
+npm install
+```
+
+Then for developing
+
+```sh
+# terminal 1 (UI localhost for hot-reload)
+npm run ui-dev
+
+# terminal 2 (for the Rust/App hot-reload)
+npm run tauri dev
+```
+
+> **Note**
+> On Windows instead of `npm run ui-dev`, you may need to run
+> `./node_modules/.bin/rollup --config --watch`
+> and
+> `npm run localhost`
+> in two separate console windows
+
+### Building
+
+Release builds are generally done via CI. To build locally, make sure typescript is compiled (`./node_modules/.bin/rollup --config`), then run `npm run tauri build`.