generator-fullstack-vue
Scaffold out a Fullstack Vuejs project:vue2;vuex;vue-router;vue-resource;express;mongo
Installation
First, install Yeoman and generator-fullstack-vue using npm (we assume you have pre-installed node.js).
npm install -g yonpm install -g generator-fullstack-vue
Then generate your new project:
yo fullstack-vue
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
About this web project
https://github.com/lix059/generator-fullstack-vue
a fullstack web project, use vue2.0 + vue-router + vuex + vue-router + express
A fullstack Vue.js project use mockjs to split FE develop & BE develop unit test
Build Setup
# install dependenciesnpm installFE:# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build# run unit testsnpm run unit# run e2e testsnpm run e2eBE:# serve with hot reload at localhost:9000grunt server# build for production, when package project must be run after FE buildgrunt build#run unit testsgrunt test#if you have a cms to publish a zip package, you can use grunt upload hereFE & BEwhen you are developing both side, you can anntate mockjs in src/main.js, andconfig the request url in config/index.js proxyTable
License
MIT © lixiong