This project is a full-stack clone of Hacker News, that implements the core features like posting, commenting (with nested comments), and username/password authentication. I've deployed this project on Fly.io, but deployment with Docker is also supported.
- Hono - backend server (like Express.js, but faster)
- Bun - package manager (Node.js alternative)
- Drizzle ORM - database ORM library (like Prisma)
- Postgres SQL - backend database
- Tanstack Router, Query, and Form - Tanstack Query is a data management library and Tanstack Form is a form state manager
- Zod - validations
- TypeScript - static typing for JavaScript
To use this project, you will first need a running Postgres server. You can set this up with Docker.
- Clone the repo
- Run
bun install
- Add in environment variables to
.env
- Run the development servers for both backend and frontend:
bun dev
for the backendcd frontend && bun dev
for the frontend
- Clone the repo
- Add in environment variables to
.env
- Build the frontend
cd frontend && bun run build
- Run
bun server/index.ts
I've tried to implement the core features of Hacker News while creating a full-stack application.