Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webix-hub/reports-go
Go backend for Webix Reports
https://github.com/webix-hub/reports-go
webix webix-backend webix-reports
Last synced: about 1 month ago
JSON representation
Go backend for Webix Reports
- Host: GitHub
- URL: https://github.com/webix-hub/reports-go
- Owner: webix-hub
- Created: 2020-12-03T08:00:48.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T15:51:49.000Z (5 months ago)
- Last Synced: 2024-08-28T17:34:16.979Z (5 months ago)
- Topics: webix, webix-backend, webix-reports
- Language: Go
- Homepage: https://webix.com
- Size: 78.1 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Webix Reports backend
=====================### How to start
- configure DB connection strings in ```config.yml```
There are two databases there, ```appdb``` where report's configuration will be stored
and ```datadb``` where data to analise is stored.
It can be the same database.- build the backend
```shell script
go build
```- start the service
```shell script
# generate test data, optional
./metadb --demodata
# run the service
./metadb --scheme ./demodata/meta.yml
```- update client side sample to use your backend (change the `url` property to ```http://localhost:8014/```)
### Schema configuration
Schema for the demodata is stored in [demodata/meta.yml](demodata/meta.yml).
This file describes available objects, their fields and relations.
Content of the file is a serialization of DBInfo structure from the [main.go](main.go) file.#### Field type
Supported fields types are
- number
- date
- string
- picklist (list of hardcoded options)
- reference (key to a different model)#### Field configuration keys
- name - name shown in report builder
- filter - true/false, allow/deny filtering by the field
- key - true/false, primary key (used for references)
- label - true/false, mark field as object label (will be shown in place of reference)
- ref - id of referenced model/picklist (if any)### Other CLI command
```shell script
# show cli help
./metadb --help
# generate meta.yml from DB
./metadb --save ./meta.yml
```