Skip to content
/ Tiny-SSR Public

Built with Vue 2.0 + vue-router + vuex, with server-side rendering

Notifications You must be signed in to change notification settings

G233/Tiny-SSR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue-SSR Demo

依据官方文档和官方Demo写出来的 Vue 服务端渲染 Deme。仅保留基础功能,包含大量注释。方便学习服务端渲染原理。(值得注意的是使用的使 webpack 3)

Features

  • Vue + vue-router + vuex working together
  • Server-side data pre-fetching
  • Client-side state & DOM hydration
  • Hot-reload in development

Architecture Overview

原理图 请配合官方文档食用

Build Setup

# install dependencies
yarn

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

# build for production
npm run build

# serve in production mode
npm server

About

Built with Vue 2.0 + vue-router + vuex, with server-side rendering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages