this is UI part
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
Miracle:
- vue init webpack frontend 2.npm install --save axios for ajax call
to deploy frontend codes. prestep: add the followings to index.js (backend codes)
app.use(express.static(path.resolve(__dirname, '../dist')))
after that use nginx to deploy http server
1.in nginx.conf file, under http part, add: include /etc/nginx/conf.d/*.conf; m 2. add any config file end wiht .conf