You will need node, git. The project is based on ES2015+、Vue.Js、Vuex、Vue-Router、antv-x6 and vue-element-admin. It would be helpful if you have pre-existing knowledge on those.
1.enter the project directory
cd primihub-webconsole
2.install dependency
npm install
3.modify vue.config.js file, the target is your gateway url
proxy: {
'/dev-api': {
target: 'your gateway url',
ws: true,
changeOrigin: true,
pathRewrite: {
'^/dev-api': ''
}
}
}
4.start the project
npm run dev
This will automatically open http://localhost:8080
# build for test environment
npm run build:stage
# build for production environment
npm run build:prod
Modern browsers and Internet Explorer 10+.
IE / Edge |
Firefox |
Chrome |
Safari |
---|---|---|---|
IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions |