Skip to content

Instantly share code, notes, and snippets.

@whaaaley
Last active August 23, 2016 19:35
Show Gist options
  • Save whaaaley/9adbe9d4d3afc41618b778ab0612fbb2 to your computer and use it in GitHub Desktop.
Save whaaaley/9adbe9d4d3afc41618b778ab0612fbb2 to your computer and use it in GitHub Desktop.

Vue for Nuebs

Part 1: Setting up a new Vue project.

1. Install vue-cli

npm install -g vue-cli
https://github.com/vuejs-templates

3. Install the template

vue init <template-name> <project-name>

4. Update Vue (optional)

npm install --save-dev vue@next

5. Update the rest of your dependencies (optional)

npm install babel-core babel-preset-es2015 babelify browserify browserify-hmr cross-env envify http-server npm-run-all uglify-js vueify watchify --save-dev

6. Disable silent mode. (-s flag in the serve script) (optional)

"serve": "http-server -c 1 -a localhost",

7. Run the dev command

npm run dev
http://localhost:8080/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment