A full-featured Reddit-style platform built with Next.js, React, Tailwind CSS, Prisma, and MySQL — supporting community creation, real-time interaction, and secure user authentication.
- 🔐 Authentication: Secure login and registration using NextAuth.js.
- 🧵 Subreddit-Style Communities:
- Create and join communities
- Post content and interact via comments
- Upvote/downvote posts and comments
- Customize personal profiles
- 🛠 Community Management: Admins can define rules to ensure a safe environment.
- 📱 Responsive UI: Fully optimized for both desktop and mobile devices using Tailwind CSS.
- ⚡ Real-Time Updates: Live post and vote updates with Redis caching for performance.
- Frontend: Next.js 14, React, Tailwind CSS
- Backend: Next.js API Routes, Prisma ORM, MySQL
- Authentication: NextAuth.js with Google Provider
- Caching & Realtime: Redis
- Deployment: Easily deployable on Vercel or your preferred platform
- Clone the repository
git clone https://github.com/yourusername/reddit-clone.git cd reddit-clone - Install dependencies
npm install - Setup environment variables
Create a
.envfile with the following required credentials:- DATABASE_URL from Railway (MySQL)
- UPLOADTHING_SECRET and UPLOADTHING_APP_ID from UploadThing
- GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET from your Google OAuth app
- NEXTAUTH_SECRET for securing NextAuth sessions
- REDIS_URL for real-time caching
- Run the development server
npm run dev - Open in browser
Visit http://localhost:3000
👉 Frontend Features Ready for Implementation
MIT License. Feel free to use and customize.




