A modern, full-stack anonymous confession platform built with Next.js 15, featuring real-time interactions, secure authentication, and a beautiful UI. Perfect for college communities to share thoughts anonymously.
- π Secure Authentication - Google OAuth integration with NextAuth.js
- π Anonymous Posts - Create confessions with optional image uploads (Cloudinary)
- β€οΈ Real-time Interactions - Like and comment on posts instantly
- π¨ Modern UI - Beautiful animations with Framer Motion & NextUI components
- β‘ Server Actions - Fast, optimized data fetching with Next.js 15
- ποΈ Database - PostgreSQL with Prisma ORM for type-safe queries
- π± Responsive Design - Tailwind CSS for mobile-first experience
- π Animated Components - Sparkles, spotlight effects, and smooth transitions
Frontend:
- Next.js 15 (App Router)
- React 18 + TypeScript
- Tailwind CSS + DaisyUI
- Framer Motion
- NextUI Components
- Lucide Icons
Backend:
- Next.js API Routes
- NextAuth.js (Google OAuth)
- Prisma ORM
- PostgreSQL Database
- Cloudinary (Image hosting)
Tools:
- TypeScript
- ESLint
- React Hot Toast
- Node.js 18+ installed
- PostgreSQL database
- Google OAuth credentials
- Cloudinary account
git clone https://github.com/abdulbaqui17/mrcet-confession.git
cd mrcet-confessionnpm installCreate a .env file in the root directory:
DATABASE_URL="postgresql://user:password@localhost:5432/mrcet_confessions"
GOOGLE_CLIENT_ID="your_google_client_id"
GOOGLE_CLIENT_SECRET="your_google_client_secret"
NEXTAUTH_SECRET="your_nextauth_secret"
NEXTAUTH_URL="http://localhost:3000"npx prisma migrate deploy
npx prisma generatenpm run devVisit http://localhost:3000 to see the app.
- Click the Fork button at the top right of this repository
- Clone your forked repository
- Create a new branch:
git checkout -b feature/your-feature - Make your changes and commit:
git commit -m "Add feature" - Push to your fork:
git push origin feature/your-feature - Create a Pull Request
βββ prisma/ # Database schema & migrations
βββ src/
β βββ app/ # Next.js 15 app router pages
β βββ components/ # Reusable React components
β βββ lib/ # Auth & utility functions
β βββ server/ # Server actions
β βββ types/ # TypeScript types
βββ public/ # Static assets
βββ tailwind.config.ts # Tailwind configuration
- Modern Stack: Uses Next.js 15 with latest React Server Components
- Type Safety: Full TypeScript implementation with Prisma
- Real-world Features: Authentication, database relations, file uploads
- Production Ready: Includes migrations, error handling, and optimization
- Best Practices: Server actions, proper data fetching, and security measures
- Beautiful UI: Professionally designed with modern animations
The project includes:
- Landing page with hero section, features, and testimonials
- Authentication flow with Google OAuth
- Post creation with image upload
- Interactive feed with likes and comments
- Responsive design for all devices
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is open source and available under the MIT License.
Built with β€οΈ by Abdul Baqui | GitHub