FayFly is a full-featured social media starter built with Next.js, Prisma, and NextAuth.
- Authentication - Email/password and Google OAuth with NextAuth.js, including email verification and password reset
- User Profiles - Profile pages with avatar and cover image uploads, bio, and editable settings
- Follow System - Subscriber/subscription relationships between users
- Posts - Create, delete, and display posts with image uploads and hashtag support
- Engagement - Like and comment system with real-time counters
- Pins - Save posts to a personal collection
- Notifications - In-app notification system with unread counts and mark-as-read
- Search - Search users and posts by hashtags with recent search history
- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env- Set up the database:
npx prisma migrate dev- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
- Framework: Next.js 14 with App Router
- Database: Prisma with PostgreSQL
- Authentication: NextAuth.js
- Styling: Tailwind CSS
