TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to build a Reddit/Hackernews like website?

5 pointsby amerf1over 6 years ago
I am learning to code I wondered if there was a guide that I could learn and at the same time build a hackernews like website. I have seen some courses in Udemy, but I am not conivnced on the quality of the courses<p>Any help would be appreciated

4 comments

krappover 6 years ago
At its core, a HN clone or any simple forum is just a CRUD app. If you can make something in the language of your choice (with or without framework, it doesn&#x27;t matter) that handles user accounts and reading from&#x2F;writing to a database, then you&#x27;re already a decent amount of the way there.<p>Beyond that, assuming you&#x27;re using a SQL database and want threading, study methods to represent tree structures from that[0].<p>[0]<a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2175882&#x2F;how-to-represent-a-data-tree-in-sql" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2175882&#x2F;how-to-represent...</a><p>The closest thing to actual HN source code that&#x27;s publicly available is probably Anarki[0] which is a public fork of Arc[1], a lisp created by PG. That codebase does already deviate from HN in several ways, is not guaranteed to be stable and doesn&#x27;t represent what might be considered modern best practices for application design, but contributions are always welcome, and if you want to know how HN itself works, in general terms, that&#x27;s probably the closest you&#x27;re going to get.<p>You can also search &quot;hacker news clone[2]&quot; here to find examples written in various languages.<p>[0]<a href="https:&#x2F;&#x2F;github.com&#x2F;arclanguage&#x2F;anarki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;arclanguage&#x2F;anarki</a><p>[1]<a href="http:&#x2F;&#x2F;arclanguage.org&#x2F;forum" rel="nofollow">http:&#x2F;&#x2F;arclanguage.org&#x2F;forum</a><p>[2]<a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=hacker%20news%20clone" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=hacker%20news%20clone</a>
dchukover 6 years ago
Here&#x27;s an HN-clone&#x27;s whole repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;lobsters&#x2F;lobsters" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lobsters&#x2F;lobsters</a>
chatmastaover 6 years ago
<a href="http:&#x2F;&#x2F;www.telescopeapp.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.telescopeapp.org&#x2F;</a>
amerf1over 6 years ago
Thanks guys, looking at links below looks very useful!