Git Product home page Git Product logo

hackernews's Introduction

Nuxt Hacker News

Hacker News clone built with Nuxt.


Live Demo

Demo

https://hn.nuxt.space

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

Performance

  • Lighthouse 100/100 (Slow 4G / Mobile Moto G4)
    • Interactive: 1.4s
    • Total Blocking Time: 30ms

Features

  • 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

Build Setup

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

Links

For the Nuxt 2 version, check out the nuxt2 branch

License

MIT

Credits

This repository is originally ported from vue-hackernews-2.0

hackernews's People

Contributors

yyx990803 avatar atinux avatar renovate[bot] avatar antfu avatar danielroe avatar pi0 avatar husayt avatar asonnleitner avatar danhawkes avatar sibbng avatar addyosmani avatar lukyth avatar sirlancelot avatar limonte avatar piusnyakoojo avatar rezahaidari avatar roryokane avatar rumkin avatar zuramai avatar isairz avatar sma11x avatar hyra avatar stevenyuysy avatar tangwz avatar williamboman avatar lynnjinjie avatar miguepiscy avatar bodyno avatar netpi avatar panjiachen avatar

Stargazers

BAGUS BUDI SATOTO avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.