aboutsummaryrefslogtreecommitdiffstats
path: root/webui/Readme.md
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-02-09 10:04:26 +0100
committerGitHub <noreply@github.com>2021-02-09 10:04:26 +0100
commit3b08731aaa1ebe37fa12b8fd4068f2271f7eb307 (patch)
treebbe36e6a1291d363998bb7008bb6eec203eee0b7 /webui/Readme.md
parentef7a0f1b11c8e44a44f1ec23a68cab2adefad36c (diff)
parent3d86c1cc783adf448c38a51a3bcbbdf9621dc70d (diff)
downloadgit-bug-3b08731aaa1ebe37fa12b8fd4068f2271f7eb307.tar.gz
Merge pull request #559 from claudioantonio/webui_543_ifloggedin
Webui 543 ifloggedin
Diffstat (limited to 'webui/Readme.md')
-rw-r--r--webui/Readme.md24
1 files changed, 18 insertions, 6 deletions
diff --git a/webui/Readme.md b/webui/Readme.md
index 2ba94b5d..50d7afa6 100644
--- a/webui/Readme.md
+++ b/webui/Readme.md
@@ -2,13 +2,25 @@
## How to develop
-1. Compile the go binary
- - run `make` in the **root** directory
-2. Run the GraphQL backend on the port 3001
- - `./git-bug webui -p 3001`
-3. Run the hot-reloadable development WebUI
+### Run GraphQL backend
- - run `npm start` in the **webui** directory
+1. Download a git-bug stable binary or compile your own by running `make` in the **root** directory:
+
+2. Run the git-bug binary inside your git repository. It will manage issues and start the API:
+ - `git-bug webui -p 3001`
+
+### Run ReactJS front-end
+
+1. If you haven't already, clone the git-bug repository:
+
+2. Enter the `webui` directory and install the needed libraries:
+ - `make install` or `npm install`
+
+3. Generate the TS code from the GrapQL files and run the webui in development mode:
+ - `make start` or `npm start`
+ - If you get some lint errors, run the lint command below and start again:
+ - `make fix-lint` or `npm run lint -- --fix`
+ - `make start` or `npm start`
The development version of the WebUI is configured to query the backend on the port 3001. You can now live edit the js code and use the normal backend.