git-bug/webui
Cláudio 7829db8850 Commit for #543
- To test I forced Ifloggedin always return null.
- Layout is ok even when edition components are hidden.
2021-02-08 22:58:15 -03:00
..
public webui: add logo 2020-01-24 00:28:18 +01:00
src Commit for #543 2021-02-08 22:58:15 -03:00
types webui: format some files 2020-02-12 23:39:23 +01:00
.eslintrc.js webui: move pages components 2020-02-13 20:00:03 +01: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 Partial commit to #158 2021-01-24 08:17:04 -03:00
package.json Partial commit to #158 2021-01-24 08:17:04 -03:00
packed_assets.go webui: pack 2020-06-27 23:04:47 +02:00
Readme.md Commit for #557 2021-02-08 18:48:44 -03:00
tsconfig.json webui: dependencies upgrades 2020-09-30 17:31:48 +02:00

git-bug rich web UI

How to develop

Run GraphQL backend

  1. Download a git-bug stable binary.

  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
    • If You got compilation errors from lint, run lint command below and start again:
      • npm run lint -- --fix
      • 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, run make pack-webui from the root directory to bundle the compiled js into the go binary.