Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

oslokommune/dataplatform-frontend

Repository files navigation

dataset-frontend

URL: https://mine.data-dev.oslo.systems/

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

Environment

Instead of simply using .env files, our environment variables can be set runtime without having to build a new image.

Environment variables are accessed like so:

import env from '@utils/env';
console.log(env.VUE_APP_BASE_URL)

This import looks for variables in index.html (set when running in docker). If it cannot find any, it will fetch variables from process.env.

Local

Local environment variables are defined in the .env file.

Prod/test

Runtime environment is achieved by entrypoint.sh, which edits index.html when the docker container starts.

Set variables like so: docker run -e VUE_APP_BASE_URL=datasets.no -e OTHER_VARIABLE=42

Deployment

This application is deployed automatically to dev whenever a new version is pushed to GHCR

Developer guide

Core functionality like isAuthenticated and other Voodo magic.

See the developer guide.

Vulnerabilities

See the vulnerability overview.

Analytics

See the analytics overview.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7