Vue prototype front-end application framework

First, prepare the environment:

  1. Run the installation environment node.js, after the installation is complete verification: node -v, npm -v;

  2. Install the domestic source: npm install -g cnpm --registry = https: //registry.npm.taobao.org;

Second, create a project:

  1. Switch to the file directory, DOS command window run: VUE the Create project name ;

  2. Use  webstorm open project directory, install the plug-in terminal terminal:

    •   Global scaffolding installation vue-cli: CNPM install -g @ VUE / cli
    •   The front end assembly is mounted element-ui library: CNPM I element-ui -S
    •   Installation route: CNPM install VUE-Router
    •   Installation request library: CNPM install Axios -S

Third, script writing:

       

 

Guess you like

Origin www.cnblogs.com/qingyuu/p/12536431.html