README updates and CS_URL fix

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2019-10-10 18:25:36 +05:30
parent d239343351
commit 7e68421f68
3 changed files with 18 additions and 12 deletions

View File

@ -1 +1 @@
API_URL=http://localhost:8080/client/api
CS_URL=http://localhost:8080

View File

@ -4,22 +4,26 @@ A modern role-based progressive CloudStack UI based on VueJS and Ant Design.
![Primate Screenshot](docs/screenshot-dashboard.png)
## Env and dependencies
## Getting Started
- node
- webpack
- eslint
- @vue/cli ~3
Install node: (Debian/Ubuntu)
sudo apt-get install npm nodejs
Install node: (CentOS/Fedora)
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install nodejs
Install tools and dependencies:
sudo apt-get install npm
sudo npm i -g npm@next
sudo npm i -g npm-check-updates
sudo npm install -g @vue/cli webpack eslint
sudo npm install -g npm@next
sudo npm install -g npm-check-updates
ncu -u # optional: upgrade dependencies
npm install
## Developing against CloudStack Env
## Development
Override the default `API_URL` to a running CloudStack management server:
@ -73,6 +77,8 @@ eg:
### Attributions
Primate uses the following:
- [VueJS](https://vuejs.org/)
- [Ant Design Spec](https://ant.design/docs/spec/introduce)
- [Ant Design Vue](https://vue.ant.design/)

View File

@ -91,8 +91,8 @@ module.exports = {
devServer: {
port: 5050,
proxy: {
'/client/api': {
target: process.env.API_URL || 'http://localhost:8080/client/api',
'/client': {
target: process.env.CS_URL || 'http://localhost:8080',
secure: false,
ws: false,
changeOrigin: true