This project is a Reddit clone built using Next.js 13. The app aims to replicate some of the core features of Reddit, allowing users to post, vote, and comment on various topics.
- Post creation with a title, content, and optional image.
- Upvote or downvote of posts, with optimistic updates.
- Infinite scrolling through a feed of posts
- User login functionality with google using NextAuth.js, with JWT and CSFR tokens
- The app is responsive and works well on both desktop and mobile devices.
- Next.js
- TypeScript
- Tailwind
- Docker
- MySQL
- BackBlaze B2 Cloud storage
- Clone the repository
- Set up environment variables by creating a
.env.localfile based on.env.template - run with docker:
docker-compose up - Access the app in your browser at
http://localhost:3000
This project was developed for educational purposes.