1.使用vue-cli创建自己的第一个Project项目;
vue init webpack test
2.创建自己运行的项目;
Project name test1
Project description A Vue.js project
Author songkefng
Vue build standalone
Install vue-router? Yes
Use ESLint to lint your code? No
Set up unit tests Yes
Pick a test runner jest Setup e2e tests with Nightwatch? Yes
Should we run `npm install` for you after the project has been created? (recommended) npm
3. cd切换目录,npm run dev 启动后端服务;
cd test1
npm run dev
4.创建第一个项目成功;
5.复制地址到chorme浏览器中,
http://localhost:8080
6.访问页面如下:
7.第一个项目创建并且搭建成功。