Install vue-cli:
npm install -g vue-cli
start a project like:
vue init <template> <project-name>
where <template>
:
webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.
browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
browserify-simple - A simple Browserify + vueify setup for quick prototyping.
simple - The simplest possible Vue setup in a single HTML file
For this example I'll use webpack
The vue-cli
will let you go through a series of yes/no questions after which you will have a project ready with scaffolding.
cd
into the project directory, it is the <project-name>
in vue init <template> <project-name>
and run npm install
.
After the installation, run npm run dev
.
Your hello world application is ready!