Skip to content

An angular dashboard querying the rest API of different CI provider to monitor pipelines.

License

Notifications You must be signed in to change notification settings

clement-joye/dashboard-rest-api

Repository files navigation

dashboard-rest-api

An angular dashboard querying the rest API of different CI provider to monitor pipelines.

image

Requirements

Node v14.15.x or later Angular 11.x or later

Personal access tokens

Generate personal access tokens (pat) in all CI providers needed (required to uery rest APIs of CI providers).🔑 Look here for DevOps and GitHub regarding how to generate your own pat.

Install

Run npm install

In data.ts, for each item in cards replace the values with your own:

{ "family": "Acme", "name": "API Tests Dev", "datasource": "devops-build", "pat": "yourPersonalAccessToken", 
    "variables": {
        "organization": "someOrganisationName",
        "project": "someProjectName",
        "definition": "someBuildName"
    } 
},

Serve

Make sure to do the above and simply run ng serve for testing purpose.

Deploy locally

For deploying your app locally without web server, bundle your app directly to deploy locally with ng build --configuration production You can then copy/paste your dist/ folder anywhere and open the index.html file with your browser.

NB: If building your app, make sure to remove that line from yoru index.html file <base href="/">.

Going further

Have a look at the different rest APIs from your favorite CI providers, and add some more logic (create/update resources, retrieve other resources etc.) to fit your own needs. See here for DevOps Azure and GitHub rest APIs documentation 🧰

See the following post on Medium for more info. Don't hesitate if you have any questions.

About

An angular dashboard querying the rest API of different CI provider to monitor pipelines.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published