npm install
npm run serve
npm run build
npm run lint
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.