front-end part for se_100 and intel swc.
$ node mockserver.js
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production and view the bundle analyzer report
npm run build --report
# run all tests except e2e tests
npm run testutils
# run e2e test use chrome driver(check the port of chromedriver is free)
npm run e2e
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
First you need build the project
npm run build # wait a minute
Then you will find the dist folder has static folder and index.html
copy the dist folder into a Linux server or a docker container
add following code into nginx.conf(default in /etc/nginx)
server {
listen 7070; # listened port
server_name swcontest; # server name
root /usr/share/nginx/html/swcontest; # root dir
index index.html;
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
}
then restart your nginx server(maybe command is systemctl restart nginx.service
)
42+ | 66+ | 73+ | 12.0+ |