{"id":25623986,"url":"https://github.com/metricq/metricq-webview","last_synced_at":"2025-04-14T07:35:13.809Z","repository":{"id":37925441,"uuid":"284034948","full_name":"metricq/metricq-webview","owner":"metricq","description":"📈 A visualization of MetricQ data exploiting the advantages of the HTA db backend ","archived":false,"fork":false,"pushed_at":"2024-10-25T14:53:02.000Z","size":3658,"stargazers_count":7,"open_issues_count":31,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-25T17:11:06.985Z","etag":null,"topics":["metricq","websocket"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metricq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-31T12:45:48.000Z","updated_at":"2024-10-25T14:52:51.000Z","dependencies_parsed_at":"2023-01-21T12:34:03.038Z","dependency_job_id":"d4ef27ee-f02b-4e36-8a58-4533d5ad4edd","html_url":"https://github.com/metricq/metricq-webview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metricq%2Fmetricq-webview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metricq%2Fmetricq-webview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metricq%2Fmetricq-webview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metricq%2Fmetricq-webview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metricq","download_url":"https://codeload.github.com/metricq/metricq-webview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248839898,"owners_count":21169891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["metricq","websocket"],"created_at":"2025-02-22T12:17:20.317Z","updated_at":"2025-04-14T07:35:13.715Z","avatar_url":"https://github.com/metricq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metricq-webview\n\nGraphing interface for MetricQ\n\n## Development\n\n### Installation\n\nUpdate your global yarn installation (we need support for project-based yarn)\n\n````shell\nnpm install -g yarn\n````\n\nThen the build system and the dependencies can be installed\n\n```shell\nyarn install\n```\n\n### dev server\n\nUse the automatically reloading dev server during development\n\n```shell\nyarn serve\n```\n\n#### override backend URL and authentication while developing\n\nYou can create a `.env.development.local` file in the repository root to override the MetricQ backend url and authentication. This file is ignored by git and should never be committed.\n\n```shell\nVUE_APP_METRICQ_BACKEND=https://metricq-grafana/\nVUE_APP_METRICQ_BACKEND_AUTH=user:pass\n```\n\n### code style\n\nWe use [standardJS](https://standardjs.com), but since we need some global variables, the linter should be called like this:\n\n```shell\nyarn lint [--fix]\n```\n\n### build for production\n\nYou can build the production version yourself download it as GitHub Actions artifacts\n\n```shell\nyarn build\n```\n\nMove the `dist` folder content respectively the artifact content to your web server and make it available at `/webview`.\n\n\n#### override backend URL and authentication in production environment\n\nYou can edit the `configuration.json` file next to the `index.html` in the `dist` folder to change the runtime configuration. At the moment the following fields are supported:\n\n```json\n{\n  \"backend\": \"\u003cbackend-url\u003e\",\n  \"user\": \"\u003cbackend-user\u003e\",\n  \"password\": \"\u003cbackend-password\u003e\"\n}\n```\n\nFor example:\n```json\n{\n  \"backend\": \"http://metricq-grafana\",\n  \"user\": \"webview\",\n  \"password\": \"SuperSecretPassword!\"\n}\n```\n\nThe fields `user` and `password` are optional and can be omitted. The default for all fields is the build time configuration.\n\nFor the docker image, you can use the environment variables METRICQ_BACKEND, METRICQ_BACKEND_USER, and METRICQ_BACKEND_PASS to override the backend URL.\nNote though, that if you want to override METRICQ_BACKEND_USER and METRICQ_BACKEND_PASS, METRICQ_BACKEND has to be set as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetricq%2Fmetricq-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetricq%2Fmetricq-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetricq%2Fmetricq-webview/lists"}