A working social network, from auth to notifications.
A full-stack clone of a microblogging platform: accounts, posts, comments, likes, follows, profile editing with image upload and a notifications feed.
The problem
I wanted to understand how a real social product fits together end to end — authentication, relational data on a document database, API design and a responsive UI that stays fast as data changes.
What I built
A Next.js application with its own REST API routes. Users register and sign in with NextAuth (credentials + bcrypt hashing). Prisma models users, posts, comments and notifications on MongoDB. The client fetches with SWR for cache-and-revalidate updates, and Zustand drives the login, register and edit modals.
Technical highlights
12 API routes: register, current user, posts, comments, likes, follow, notifications, profile edit.
Prisma schema with User, Post, Comment and Notification models on MongoDB.
Session-based auth with NextAuth and the Prisma adapter, passwords hashed with bcrypt.
Drag-and-drop avatar and cover upload with react-dropzone.
Optimistic-feeling UI with SWR revalidation and toast feedback.
Live demo without a server: the original components run against an in-browser port of the API routes, database and auth, plugged in as an axios adapter.