GraphQL-Addon for Cockpit-XP
Extending Cockpit-XP by a GraphQL-api.
This is a monorepo containing 3 separate applications:
- the addon:
packages/addon
- the server:
packages/server
- the frontend:
packages/frontend
This project uses task to automate it's routines. It's not required but heavily recommended.
Requirements are
- node v14+
- go v1.16+
To bundle the complete application simply run task
.
Everything needed is then located in dist
folder.
- Copy the contents of the
dist
folder to<cockpit_dir>/AddOn/MRohmer/GraphQL
. - Then start the
server.exe
from within this directory. - Enable the AddOn within Cockpit-XP.
- Launch up your favourite browser & navigate to localhost:8080