updatecli / udash-front

Udash frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

udash

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Deploy to production

This application relies files /usr/share/nginx/html/config.js and /usr/share/nginx/html/config.json to provide runtime configuration.

config.js

.public/config.js

const config = (() => {
  return {
    "OAUTH_DOMAIN": "oauth domain",
    "OAUTH_CLIENTID": "xxx",
    "OAUTH_AUDIENCE": "http://localhost:8080/api"
  };
})();

A similar config file can be generate to simplify the updatecli login parameter

config.json

.public/config.json

{
   "OAUTH_DOMAIN": "oauth domain",
   "OAUTH_CLIENTID": "xxx",
   "OAUTH_AUDIENCE": "http://localhost:8080/api"
}
})();

For the local development environment, those two files must be located in the directory public. A gitignore rule ensure those two files are not committed to the git repository.

Customize configuration

See Configuration Reference.

About

Udash frontend

License:GNU Affero General Public License v3.0


Languages

Language:Vue 92.8%Language:JavaScript 5.1%Language:Dockerfile 1.1%Language:HTML 1.0%