git-bug/webui
Michael Muré 57e7147021
graphql: properly namespace Bug to make space for other entities (#1254)
Also: use gqlgen directives to help the type auto-binding

Missing:
- namespace mutations
- adapt the webUI queries
2024-08-28 09:43:42 +00:00
..
public Add 404 page #10 2021-03-15 16:35:14 +01:00
src graphql: properly namespace Bug to make space for other entities (#1254) 2024-08-28 09:43:42 +00:00
types Add emoji rendering support via remark-gemoji 2021-04-07 19:30:07 +02:00
.eslintrc.js webui: replace GraphQL linter 2022-02-22 21:59:18 +01:00
.gitignore
.prettierrc
codegen.yaml webui: dependencies upgrades 2020-09-30 17:31:48 +02:00
debug_assets.go build: go 1.18 minimum 2022-07-31 14:47:07 +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 build: go 1.18 minimum 2022-07-31 14:47:07 +02:00
package-lock.json build(deps-dev): bump the npm_and_yarn group across 1 directory with 4 updates (#1250) 2024-08-25 20:04:56 +00:00
package.json build(deps): bump graphql from 16.6.0 to 16.8.1 in /webui 2024-07-22 22:14:55 -07:00
packed_assets.go graphql: properly namespace Bug to make space for other entities (#1254) 2024-08-28 09:43:42 +00:00
Readme.md Commit for #564 2021-02-19 19:16:33 -03:00
tsconfig.json webui: upgrade most dependencies 2022-02-16 10:27:26 +01: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.