Skip to content
HackerNews clone built with Nuxt.js
Vue JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 73c2433 May 4, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets chore(UI): Lifting May 23, 2019
common prepare for now2 Feb 23, 2019
components Run fixlint Dec 14, 2019
layouts Run fixlint Dec 14, 2019
pages Run fixlint Dec 14, 2019
plugins Run fixlint Dec 14, 2019
static Create robots.txt May 4, 2020
store Run fixlint Dec 14, 2019
.editorconfig nuxt hacker news Jun 2, 2017
.eslintrc.js chore: update dependencies and linter Feb 23, 2019
.gitignore chore: Upgrade dependencies Jun 4, 2019
.nowignore prepare for now2 Feb 23, 2019
LICENSE license Mar 31, 2017
README.md Fix typo in README.md Dec 14, 2019
now.json fix: Use correct value for cache-control Jun 4, 2019
nuxt.config.js Run fixlint Dec 14, 2019
package.json pkg: Upgrade dependencies Nov 6, 2019
renovate.json add renovate.json Feb 23, 2019
yarn.lock pkg: Upgrade dependencies Nov 6, 2019

README.md

Nuxt.js Hacker News

HackerNews clone built with Nuxt.js.

Screenshot 2019-06-04 at 13 27 51
Live Demo

Modes

Hosted on Now 2: npm run build + now.json

Hosted on Netlify: npm run build-spa + dist/ directory

Performance

Features

  • Server Side Rendering
  • Code Splitting
  • Single-file Vue Components
  • Real-time List Updates with FLIP Animation
  • Prefetch/Preload JS + DNS + Data
  • Critical Path CSS
  • PWA experience using PWA Module with almost zero config
  • PRPL
  • Hot reloading dev environment integrated with ESLint and Prettier
  • Hosted on Now 2

Build Setup

Requires Node.js 8+

# install dependencies
npm install # or yarn

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

# build for production (universal)
npm run build

# serve in production mode (universal)
npm start

# build for production (spa)
npm run build-spa

# serve in production mode (spa)
npm run start-spa # or upload dist/ directory

# validate code with ESLint (with Prettier)
npm run lint

# validate and fix with ESLint (with Prettier)
npm run lintfix

Links

For the communiy typescript fork please see nuxt-community/hackernews-nuxt-ts

License

MIT

Credits

This repository is originally ported from vue-hackernews-2.0

You can’t perform that action at this time.