Skip to content

Development

Patrik Svensson edited this page Mar 14, 2020 · 5 revisions

1. Add a config.json file

Create a config.json file in the repository root with the following content:

{
    "$schema": "./schemas/v0.7.json",
    "title": "Cake Dashboard",
    "interval": 30,
    "views": [
        {
            "id": "centos",
            "name": "CentOS",
            "collectors": [ "azure" ]
        },
        {
            "id": "fedora",
            "name": "Fedora",
            "collectors": [ "azure_2" ]
        }
    ],
    "collectors": [
        {
            "azure": {
                "id": "azure",
                "organization": "cake-build",
                "project": "cake",
                "definitions": [ "5" ],
                "branches": [ "refs/heads/main", "refs/heads/develop" ],
                "credentials": "anonymous"
            }
        },
        {
            "azure": {
                "id": "azure_2",
                "organization": "cake-build",
                "project": "cake",
                "definitions": [ "6" ],
                "branches": [ "refs/heads/main", "refs/heads/develop" ],
                "credentials": "anonymous"
            }
        }
    ]
}

2. Build and start the Duck frontend

Start by going into the web directory. Install all dependencies and then run the site.

> cd web
> npm install
> npm run serve

3. Build and run the Duck server

Build and run the duck server by running the following command:

> cargo run -- --level debug

4. Visit the Duck UI

You should now be able to load the Duck UI by visiting: