https://github.com/updatecli/udash-front
Udash frontend
https://github.com/updatecli/udash-front
Last synced: 4 months ago
JSON representation
Udash frontend
- Host: GitHub
- URL: https://github.com/updatecli/udash-front
- Owner: updatecli
- License: agpl-3.0
- Created: 2023-05-09T18:44:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T08:25:42.000Z (9 months ago)
- Last Synced: 2024-10-19T11:24:11.455Z (9 months ago)
- Language: Vue
- Size: 1.28 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://cli.vuejs.org/config/).