mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 04:51:39 +02:00
Add templates and custom urls for monitoring views
This commit is contained in:
11
README.md
11
README.md
@@ -11,7 +11,7 @@ git clone --recursive git@github.com:ClusterCockpit/cc-jobarchive.git
|
||||
# Prepare frontend
|
||||
cd ./cc-jobarchive/frontend
|
||||
yarn install
|
||||
yarn build
|
||||
CCFRONTEND_ROLLUP_INTRO="" yarn build
|
||||
|
||||
cd ..
|
||||
go get
|
||||
@@ -33,7 +33,16 @@ touch ./var/job.db
|
||||
./cc-jobarchive --help
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
A config file in the JSON format can be provided using `--config` to override the defaults. Loop at the beginning of `server.go` for the defaults and consequently the format of the configuration file.
|
||||
|
||||
### Update GraphQL schema
|
||||
|
||||
This project uses [gqlgen](https://github.com/99designs/gqlgen) for the GraphQL API. The schema can be found in `./graph/schema.graphqls`. After changing it, you need to run `go run github.com/99designs/gqlgen` which will update `graph/model`. In case new resolvers are needed, they will be inserted into `graph/schema.resolvers.go`, where you will need to implement them.
|
||||
|
||||
### TODO
|
||||
|
||||
- [ ] Documentation
|
||||
- [ ] Write more TODOs
|
||||
|
||||
|
Reference in New Issue
Block a user