Skip to content

dandre3000/vue-ssr-template

Repository files navigation

vue-template

Vue app template with server side rendering.

  • Webpack configured to build separate frontend and backend bundles
  • webpack-dev-middleware and webpack-hot-middleware for hot module reloading
  • Node.js backend with Express server
  • Vue.js gui framework for client and server
  • Babel compiler
  • ESLint linter

Installation

Fork/copy the repository then install dependencies.

npm i

Development setup

Build development server and watch files.

npm run build-dev-server

Start dev-server with hot module reloading for client. Restart on every server build.

npm run nodemon

Production setup

Build then start server.

npm run build
npm start