mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
README updates and CS_URL fix
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
d239343351
commit
7e68421f68
@ -1 +1 @@
|
|||||||
API_URL=http://localhost:8080/client/api
|
CS_URL=http://localhost:8080
|
||||||
|
|||||||
24
ui/README.md
24
ui/README.md
@ -4,22 +4,26 @@ A modern role-based progressive CloudStack UI based on VueJS and Ant Design.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 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/)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user