Home

Awesome

<h2 align="center">Hacker News Clone Remix/React</h2> <p align="center"> <a href="https://github.com/clintonwoo/hackernews-remix-react/stargazers"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/clintonwoo/hackernews-remix-react?style=social"></a> <a href="https://github.com/clintonwoo/"><img alt="GitHub Followers" src="https://img.shields.io/github/followers/clintonwoo.svg?style=social&label=Follow"></a> <a href="https://github.com/clintonwoo/hackernews-remix-react/issues"><img alt="GitHub Issues" src="https://img.shields.io/github/issues/clintonwoo/hackernews-remix-react.svg"></a> <a href="https://github.com/clintonwoo/hackernews-remix-react/pulls"><img alt="GitHub Pull Requests" src="https://img.shields.io/github/issues-pr-raw/clintonwoo/hackernews-remix-react.svg"></a> </p>

This is a clone of Hacker News written in TypeScript using Remix and React.

It is intended to be an example or boilerplate to help you structure your projects using production-ready technologies.

The project implements the publicly available parts of the Hacker News site API, with some remaining functionality implemented in-memory.

<p align="center" margin-bottom="0"> <a href="https://remix.hnclone.win" target="_blank"> <img alt="Hacker News Clone Demo" width="600" height="auto" src="docs/hn-screenshot-seal.webp"> </a> </p> <p align="center"> <a href="https://remix.hnclone.win">Live Demo</a> </p>

Overview

Featuring

Benefits

UI

Server

Dev/Test

Architecture overview

<p align="center"> <img alt="Hacker News clone architecture overview diagram" width="600" height="auto" src="docs/architecture.png"> </p>

Remix emphasises web primitives and fundamentals. So requests are made generally using Remix's <Link>s and <Form>s which add some extra functionality on top of the regular <a> and <form> tags.

Remix routes folder correlates to route-matching UI views with layouts and endpoints for GET (loader) or all other HTTP verb methods (action). You can have endpoints with no UI and UI with no endpoints, or mixed.

Remix takes care of the build system (using ESBuild), which works incredibly quickly and is a pleasure to work with. Remix implements code-splitting, HTTP headers, asset bundling and various optimizations to make the site run fast in real-world scenarios.

Remix can run in a number of runtime environments so the architecture for your app could be widely different depending on your requirements. You could deploy it on an edge network (like Cloudflare Workers) or run it with NodeJS inside a cloud VM or VPS, for example.

How to build and start

Start with npm install.

You can build and start with file watching using npm run dev.

Or you can do a regular build and start using npm run build and npm run start.

One Command Setup & Run

You can download and run the repo with one command to rule them all:

git clone https://github.com/clintonwoo/hackernews-remix-react.git && cd hackernews-remix-react && npm install && npm run build && npm run dev

Contributing

File an issue for ideas, conversation or feedback. Pull requests are welcome.

Community

After you ★Star this project, follow @ClintonDAnnolfo on Twitter.