React Hn screenshot

React Hn

Author Avatar Theme by Insin
Updated: 19 May 2020
2294 Stars

React-powered Hacker News client

Categories

Overview

The react-hn project is a React and react-router-powered implementation of the popular Hacker News website, utilizing the Firebase API. This implementation aims to recreate the features and functionalities of Hacker News while incorporating additional capabilities like collapsible comment threads, real-time updates, last visit details caching, and more. With support for various item types, user profiles, and configurable settings, react-hn offers an enhanced browsing experience for users interested in exploring Hacker News content.

Features

  • Support for all item types: Stories, jobs, polls, and comments can all be displayed.
  • Basic user profiles: Users can have basic profiles associated with their activity.
  • Collapsible comment threads: Threads of comments can be collapsed for easier viewing.
  • Realtime updates: Updates are received in real-time through the Firebase API.
  • Last visit details: Story details are cached in the browser’s localStorage.

Installation

To build and run the react-hn project, follow these steps:

  1. Install dependencies:
npm install
  1. Start the development server:
npm start
  1. Build the project into the dist/ directory:
npm run build
  1. Lint the source code:
npm run lint
  1. Fix linting issues automatically:
npm run lint:fix

Summary

React-hn is a powerful implementation of Hacker News using React and the Firebase API. It replicates the core features of Hacker News while incorporating enhancements like collapsible comment threads, real-time updates, and cached story details. With support for various item types and configurable settings, react-hn offers a modern and user-friendly interface for browsing Hacker News content.