cmqiong / spa-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spa-demo-frontend

desc

The project is working for XXXX that is in charge of frontend engineer.

The main features of the platform consist of 'XXXX, 'XXX' and so on.

How to install

  1. Clone it from gitlab to your local.
git clone XXX
  1. Use npm to install dependencies, make sure your node version >= 6.
npm install

How to run

  1. Open the auto compiler, and you can get more info from cmd.
npm run dev
  1. Open the node server, and the default server port is 1700.
npm run mock

How to public

There are four envs for public. You can use option to set diff envs.

npm run build:[option]

option: use to describe the public env.

Recognised type values are: qa, test, ali and aws

  • You must optimize the config in /src/assets/js/tools.js:20-31.

  • The url matched the env is significant to ajax.

About


Languages

Language:JavaScript 47.1%Language:Vue 46.0%Language:CSS 5.5%Language:HTML 1.3%