diff options
author | Cláudio <claudio.engdist@gmail.com> | 2021-02-08 18:44:18 -0300 |
---|---|---|
committer | Cláudio <claudio.engdist@gmail.com> | 2021-02-08 18:44:18 -0300 |
commit | 8d71888c6d19701abe9ba76bb5747171e95622e8 (patch) | |
tree | 742f5375f3a7118bc63f4370307dfc6a0d708bfe /webui | |
parent | 29ea8df4259921f1789e0e6d584767fc5f54b284 (diff) | |
download | git-bug-8d71888c6d19701abe9ba76bb5747171e95622e8.tar.gz |
Commit for #557
- Adding more details
- Tip when lint error occur
Diffstat (limited to 'webui')
-rw-r--r-- | webui/Readme.md | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/webui/Readme.md b/webui/Readme.md index 2ba94b5d..f80caa45 100644 --- a/webui/Readme.md +++ b/webui/Readme.md @@ -2,15 +2,28 @@ ## 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. -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. +2. Execute git-bug binary inside directory for the git repository it will manage issues: + - git-bug webui -p 3001 + +### Run ReactJS front-end + +1. Clone git-bug repository. + +2. Enter webui directory and install libraries needed: + - npm install + +3. Generate ts code from graphql files and run webui in development mode + - npm start + +3.1. If You got compilation errors from lint, run lint command below and start again: + - npm run lint -- --fix + - npm start + +3.2. 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. ## Bundle the web UI |