Vue Todo

本项目用于实战开发 Vue,用于学习使用 Vue。



  • node

node 入门

  • npm


  • vue-cli



$ vue init webpack vue-todo

? Project name vue-todo
? Project description Todo list implements of vue.
? Author houbb <
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recommended) npm

   vue-cli · Generated "vue-todo".

# Installing project dependencies ...
# ========================

> fsevents@1.2.4 install /Users/houbinbin/code/_github/vue-todo/node_modules/fsevents
> node install

[fsevents] Success: "/Users/houbinbin/code/_github/vue-todo/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote

> uglifyjs-webpack-plugin@0.4.6 postinstall /Users/houbinbin/code/_github/vue-todo/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
added 1311 packages from 701 contributors and audited 9284 packages in 36.712s
found 1 moderate severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Running eslint --fix to comply with chosen preset rules...
# ========================

> vue-todo@1.0.0 lint /Users/houbinbin/code/_github/vue-todo
> eslint --ext .js,.vue src "--fix"

# Project initialization finished!
# ========================

To get started:

  cd vue-todo
  npm run dev
Documentation can be found at


  • 启动命令
$ cd vue-todo
$ npm run dev
  • 启动日志
> vue-todo@1.0.0 dev /Users/houbinbin/code/_github/vue-todo
> webpack-dev-server --inline --progress --config build/

 95% emitting                                                                        

 DONE  Compiled successfully in 2870ms                                                                                                                                       15:52:54

 I  Your application is running here: http://localhost:8080

打开 http://localhost:8080 访问即可。