Skip to content

chrisdwheatley/nextjs-hn

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

nextjs-hn (nextjs-hn.chrisdwheatley.com)

A Hacker News Progressive Web App built using Next.js

Features

  • Server-rendered React with Next.js
  • Aliases React to Preact in production for a smaller bundle size
  • Service worker support with sw-precache
  • 100/100 Lighthouse score
  • Server side in memory LRU cache to improve time to first byte
  • DNS prefetching for client side API requests

Getting Started

Clone the repository.

git clone git@github.com:chrisdwheatley/nextjs-hn.git

cd into the directory.

cd nextjs-hn

Install the project dependencies.

yarn

or

npm install

Start the development server.

npm run dev

Navigate to localhost:3000 in your browser of choice.

Testing the Service Worker setup requires running as production.

npm run build
npm start

Navigate to localhost:3000 in your browser of choice.

License

Released under the MIT license: opensource.org/licenses/MIT

About

A Hacker News Progressive Web App built using Next.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published