剑客
关注科技互联网

知乎日报 demo 基于 Vue.js 2.0 支持服务端渲染

vue-zhihudaily-2.0

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

知乎日报 demo 基于 Vue.js 2.0 支持服务端渲染

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

知乎日报 demo 基于 Vue.js 2.0 支持服务端渲染

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
分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址