Nuxt.js Hacker 新闻

使用 Nuxt.js 构建的 HackerNews 克隆。「HackerNews clone built with Nuxt.js」

Github星跟蹤圖

Nuxt.js Hacker News

HackerNews clone built with Nuxt.js.

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

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

主要指標

概覽
名稱與所有者nuxt/hackernews
主編程語言Vue
編程語言Vue (語言數: 3)
平台Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2017-06-02 18:54:05
推送於2025-04-21 09:14:41
最后一次提交
發布數0
用户参与
星數1.4k
關注者數22
派生數271
提交數572
已啟用問題?
問題數41
打開的問題數1
拉請求數165
打開的拉請求數1
關閉的拉請求數60
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?