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

View File

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