Zhihudaily demo built with Vue 2.0, vue-router & vuex, with server-side rendering
Switch branches/tags
Nothing to show
Clone or download
cs1707 Merge pull request #2 from lilkr/master
modify webpack base config
Latest commit 5e3dbbd Jan 3, 2017
Permalink
Failed to load latest commit information.
build modify webpack base config Dec 22, 2016
src init Oct 13, 2016
.babelrc init Oct 13, 2016
.gitignore modify gitignore Dec 22, 2016
LICENSE Initial commit Oct 13, 2016
README.md init Oct 13, 2016
index.html init Oct 13, 2016
package.json update webpack config Oct 13, 2016
screenshot.png init Oct 13, 2016
server.js init Oct 13, 2016

README.md

vue-zhihudaily-2.0

Zhihudaily demo built with Vue 2.0 + vue-router + vuex, with server-side rendering. 主要参考 vue-hackernews-2.0 .


Live Demo

Features

  • Server Side Rendering
    • Vue + vue-router + vuex working together
    • Server-side data pre-fetching
    • Client-side state & DOM hydration
    • Hot-reload in development
    • CSS extraction for production

Architecture Overview

screen shot 2016-08-11 at 6 06 57 pm

Build Setup

Requires Node.js 6+

# install dependencies
npm install

# serve in dev mode, with hot reload at localhost:8080
npm run dev

# build for production
npm run build

# serve in production mode
npm start