Skip to content

Renszit/hackernewsclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker News Clone

A Hacker News clone built with React, styled-components, and TypeScript.

Table of Contents

Features

  • View a list of news articles and discussions from the Hacker News API.
  • Sort articles by various criteria, including score, date, and comments.
  • Search for articles and discussions by keyword.
  • View individual articles and discussions in more detail, including comments and related articles.
  • Responsive design for optimal viewing on desktop and mobile devices.

Tech Stack

Setup

  1. Clone the repository:
git clone https://github.com/Renszit/hackernewsclone.git
  1. Install dependencies:
cd hackernewsclone
npm install
  1. Create a .env.local file in the root of the project and add the following:
REACT_APP_API_BASE_URL=https://hacker-news.firebaseio.com/v0

Usage

  1. Start the development server:
npm start
  1. Open your web browser and go to https://localhost:3000.