This is a boilerplate for developing with both Vue.js and Koa2. Production ready!
使用Vue.js和Koa2同构开发的样板工程,已进行过生产环境验证!
# install dependencies
npm install | yarn install
# start development with both ends hot-reload
npm start
# build both ends
npm run build | npm run build:debug
# compress the built project for deployment
npm run package
# lauch application on linux server
# cd YOURPROJECT/bin
./server.sh start testing | production
- Frontend hot-reload without refreshing webpage manually.
- Backend hot-reload without restarting NodeJs server.
- Decorator design pattern for router and controller implementation.
- RSA encrypt/decrypt has been implemented in both ends.
- Writing codes with ES6/ES7 and compile both frontend and backend for release.
- Pack the whole built project and external modules for deployment.
TBD
TBD