Vue 1.0 project - Start from scratch
- Install Node.js
Go to Node website
- Install vue-cli
A simple CLI for scaffolding Vue.js projects
$ npm install -g vue-cli
- Install json-server
Full fake REST API
$ npm install -g json-server
-
Clone or Download the project
-
Install dependencies
$ cd my-project
$ npm install
- Open first command prompt
a) for dev build
$ cd my-project
$ npm run dev
b) for prod build
$ cd my-project
$ npm run build
Install http-server
A command-line http server
$ npm install -g http-server
then
$ cd my-project\dist
http-server
- Open second command prompt
$ cd my-project\fake_db
$ json-server --watch db.json
- Go to localhost
- single file components (.vue)
- include 3rd-party JS library
- Webpack
- Normalize.css
- Bootstrap
- Vue Loader
- Vue Resource
- Vue Router
- Vue i18n
- Favicons Webpack Plugin
- NProgress
- NO unit/integration test has been developed
This is just a simple example, I hope this will help you to understand better Vue.