From a1d17579b02ae06b85424cc7c1ff5532994dd3ff Mon Sep 17 00:00:00 2001 From: Peter Tandler Date: Sun, 17 Sep 2023 10:58:59 +0200 Subject: [PATCH] Added README.md and dev-start-server.sh script for development. --- README.md | 29 +++++++++++++++++++++++++++++ dev-start-server.sh | 9 +++++++++ 2 files changed, 38 insertions(+) create mode 100644 README.md create mode 100755 dev-start-server.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..c26c744 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Kopia HTML Ui + +This is the repository for the html UI for kopia. It is bundled as part of the [kopia UI releases (e.g. `KopiaUI-Setup-X.Y.Z.exe` or a `kopiaui` package)](https://kopia.io/docs/installation/#two-variants-of-kopia). + +## Reporting issues + +If you want to report a bug or have an idea for a feature request, please use the [issues list of the main kopia repository](https://github.com/kopia/kopia/issues?q=is%3Aissue+is%3Aopen+gui). + +## Development + +The kopia UI uses [React](https://react.dev/). It connects to a kopia server running locally. + +If you want to run a local version of the GUI (e.g. for development), you need to start a kopia server first. +As the UI version might be ahead of the latest release and might depend on changes in the server, it's recommended +that you also clone the [kopia server repository](https://github.com/kopia/kopia#readme) and start the server from there (GO required). + +You can use this script like this one. Here it's assumed that you cloned the server repo next to the htmlui. + +```bash +#! /bin/bash +( + cd ../kopia + # start kopia server with default repo: + #go run . server start --insecure --without-password --disable-csrf-token-checks --log-level=debug + + # for development you might want to use another repository for testing only, not your normal one, so you could use, e.g. + go run . server start --insecure --without-password --disable-csrf-token-checks --log-level=debug --config-file=$HOME/.config/kopia/disabled/repository-dev.config +) +``` diff --git a/dev-start-server.sh b/dev-start-server.sh new file mode 100755 index 0000000..b4020a0 --- /dev/null +++ b/dev-start-server.sh @@ -0,0 +1,9 @@ +#! /bin/bash +( + cd ../kopia + # start kopia server with default repo: + #go run . server start --insecure --without-password --disable-csrf-token-checks --log-level=debug + + # for development you might want to use another repository for testing only, not your normal one, so you could use, e.g. + go run . server start --insecure --without-password --disable-csrf-token-checks --log-level=debug --config-file=$HOME/.config/kopia/disabled/repository-dev.config +)