A Hapi Vue project
/build/ - Contains files needed for build and hot development
/build/index_dev.html - Template for index.html, it will be used by HMR when developing in memory and during production build
/client/ - Vue.js app source
/config/ - Configuration files
/public/ - Public folder served by Hapi
/server/ - Server side logic
/test/ - Contains test files
/app.js - Production server
/gulpfile.js - Gulp setup file
# install dependencies
npm install
# run unit tests
npm run unit
# run api unit tests
npm run unit-api
# serve with hot reload at localhost:4000 (proxy from localhost:3000)
npm run dev
# install dependencies
npm install
# build for production with minification
npm run build
# run application at localhost:3000
node app.js
Credits:
Vue 2
Hapi
Gulp
BrowserSync
Webpack