HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
JavaScript Vue HTML
Latest commit f5ca53a Dec 30, 2016 @yyx990803 yyx990803 tweak server
Permalink
Failed to load latest commit information.
build bump deps Dec 29, 2016
public add public dir + big icons Nov 14, 2016
src limit client store item cache to 3 minutes Dec 29, 2016
.gitignore add IntelliJ IDEA project related ignores Nov 14, 2016
README.md yarn Nov 5, 2016
manifest.json add public dir + big icons Nov 14, 2016
package.json bump deps Dec 29, 2016
server.js tweak server Dec 29, 2016
yarn.lock bump deps Dec 29, 2016

README.md

vue-hackernews-2.0

HackerNews clone built with Vue 2.0 + vue-router + vuex, with server-side rendering.


Live Demo

Note: the demo may need some spin up time if nobody has accessed it for a certain period.

Features

  • Server Side Rendering
    • Vue + vue-router + vuex working together
    • Server-side data pre-fetching
    • Client-side state & DOM hydration
  • Single-file Vue Components
    • Hot-reload in development
    • CSS extraction for production
  • Real-time List Updates with FLIP Animation

Architecture Overview

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

Build Setup

Requires Node.js 6+

# install dependencies
npm install # or yarn

# 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