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 (语言数: 2)
平台Linux, Mac, Windows
许可证MIT License
发布数0
创建于2017-06-02 18:54:05
推送于2024-05-06 18:22:18
最后一次提交2023-12-12 19:14:19
星数1.2k
关注者数23
派生数258
提交数440
已启用问题?
问题数40
打开的问题数2
拉请求数41
打开的拉请求数7
关闭的拉请求数52
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部