Hacker News clone built with Nuxt.
Hosted on Vercel:
npm run build
To disable server-side render for a page, simply append ?csr
to the URL, example: https://hn.nuxt.space/news/1?csr
- Lighthouse 100/100 (Slow 4G / Mobile Moto G4)
- Interactive: 1.4s
- Total Blocking Time: 30ms
- Server Side Rendering
- Vite-based hot module replacement (HMR) dev environment
- Deploys anywhere with zero config (Vercel, Netlify, Cloudflare, etc.) powered by Nitro
- Code Splitting
- Prefetch/Preload JS + DNS + Data
Requires Node.js 14+
# install dependencies
npm install # or yarn
# serve in dev mode, with hot reload at localhost:3000
npm run dev
# build for production (server-side rendering)
npm run build
# serve in production mode (server-side rendering)
npm start
# validate and fix with ESLint (with Prettier)
npm run lintfix
For the Nuxt 2 version, check out the nuxt2
branch
MIT
This repository is originally ported from vue-hackernews-2.0