A Vue.js project with vue 2.0, vue-router and vuex starter kit for server side rendering.
- Node.js 6.x or 7.x (https://nodejs.org)
- forever (https://www.npmjs.com/package/forever)
- Express
- Vue.js
- vue-server-renderer
- vue-no-ssr
- vue-meta
- vue-moment
- vee-validate
- vue-bootstrap
- vue-router
- vuex
- vuex-router-sync
- jQuery
- Axios
- js-cookie
- cookie-parser
- q
- lru-cache
- cross-env
- serve-favicon
- popper.js
- Bootstrap4
- node-sass
- webpack 2.x
- vue-ssr-webpack-plugin
- babel
- eslint
- karma
- mocha
- sinon
- chai
You can choose your environment when you start the development server.
env
variable will be assigned to process.env.NODE_ENV
by cross-env
cd your-project
git clone https://github.com/evan-moon/vue-ssr-starter.git
You can use Homebrew
or download node.js directly from the node.js website.
brew install node # If you want
npm install -g forever
npm install
npm run serve:env
npm run build:env
Use forever
as the server daemon.
npm run start:env
npm run stop
npm run restart
# Server Scripts
npm run start:env
npm run stop
npm run restart
# Dev Scripts
npm run serve:env
# Build Scripts
build:client:env
build:server:env
build:env
# Test Scripts
unit-test
Config files webpack and loader
Application source
- assets
- components
- constants
- mixins
- pages
- plugins
- router
- services
- stores
- styles
- unit
- .bablerc
- .clang-format
- .editorconfig
- .eslintrc.js
- .htmlhintrc
- .jshintrc
- .eslintignore
- .gitignore
- err.log
- out.log
- robots.txt
- travis.yml