git-bug/webui
dependabot[bot] 90637744aa
Bump ws from 5.2.2 to 5.2.3 in /webui (#728)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-05 14:19:32 +01:00
..
public Add 404 page #10 2021-03-15 16:35:14 +01:00
src Merge pull request #682 from GlancingMind/webui-comment-and-reopen-bug 2021-05-27 11:08:53 +02:00
types Add emoji rendering support via remark-gemoji 2021-04-07 19:30:07 +02:00
.eslintrc.js feat: use author to filter the list 2021-04-07 13:07:58 +02:00
.gitignore make git-bug go gettable without having to commit the builded webUI 2018-08-06 14:18:55 +02:00
.prettierrc webui: Format everything with prettier 2018-08-19 23:14:45 +02:00
codegen.yaml webui: dependencies upgrades 2020-09-30 17:31:48 +02:00
debug_assets.go invert the behavior of the build flag for the webui 2018-09-02 00:06:50 +02:00
handler.go Reorganize the webUI and API code 2020-06-27 23:03:05 +02:00
Makefile webui: fix bad formatting on Date 2020-02-23 15:58:39 +01:00
pack_webui.go invert the behavior of the build flag for the webui 2018-09-02 00:06:50 +02:00
package-lock.json Bump ws from 5.2.2 to 5.2.3 in /webui (#728) 2022-01-05 14:19:32 +01:00
package.json Add emoji rendering support via remark-gemoji 2021-04-07 19:30:07 +02:00
packed_assets.go Add Linter Step (#698) 2021-09-13 22:19:30 +02:00
Readme.md Commit for #564 2021-02-19 19:16:33 -03:00
tsconfig.json webui: dependencies upgrades 2020-09-30 17:31:48 +02:00

git-bug rich web UI

Prerequisites

ReactJS | Material UI | GraphQL | Apollo GraphQL

How to develop

Run GraphQL backend

  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.

Bundle the web UI

Once the webUI is good enough for a new release:

  1. run make build from webui folder
  2. run make pack-webui from the root directory to bundle the compiled js into the go binary.
    • You must have Go installed on Your machine to run this command.