aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-26 13:25:38 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-26 13:25:38 +0200
commitda980bd8eb5912dc5b0097038669b38f8db03a37 (patch)
tree19194f4ef89f9748e85336a18af4ae71a8245e21
parentc28e67f262180c84fecbbee7dcbaaa217c836ba3 (diff)
downloadFlightCore-da980bd8eb5912dc5b0097038669b38f8db03a37.tar.gz
FlightCore-da980bd8eb5912dc5b0097038669b38f8db03a37.zip
Add development guide to README
-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`.