Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 2.24 KB

README.md

File metadata and controls

69 lines (48 loc) · 2.24 KB

Temage

front-end part for se_100 and intel swc.

Mock Server (IMPORTANT, OTHERWISE FRONT-END WILL NOT WORK PROPERLY)

$ node mockserver.js

Build Setup

# 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.

Deploy

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)

Browser Support

IE / Edge Firefox Chrome Chrome
42+ 66+ 73+ 12.0+