1, the premise of restraint
- Complete installation nodejs, vue-cli, webpack, webpack-dev-server of
https://www.jianshu.com/p/eb4d9e132f62
2, Procedure
- Create a project:
# 执行此命令,一路回车
vue init nuxt/starter nuxt-demo
# 进入项目路径
cd nuxt-demo
# 下载依赖包
cnpm install
# 构建
cnpm run build
# 启动
cnpm run start
- Project structure:
- Access to start printing the log path, the path of the start of the project is http: // localhost: 3000
or more is our first demo nuxt of using scaffolding vue created.