π§βπΌ LinkedIn Clone β Full Stack Social Media App
A modern LinkedIn-style social media platform built with React + TypeScript + Node.js + MongoDB, where users can sign up, log in, create posts (with text or images), like, comment, and view posts from all users β in real time.
π Live Demo
π₯οΈ Frontend (Vercel): https://linkedclone-mu.vercel.app
βοΈ Backend (Render): https://linkedclone-a9n0.onrender.com
πΎ GitHub Repository: https://github.com/ankittrip/linkedclone
π Tech Stack π₯οΈ Frontend (React + TypeScript)
React 19 (Vite)
TypeScript
Tailwind CSS
React Router DOM
Axios
Socket.io Client
Lucide React Icons
Date-fns
βοΈ Backend (Node.js + Express)
Node.js + Express.js
MongoDB + Mongoose
JWT Authentication
Multer (File Upload)
Cloudinary (Image Storage)
Socket.io (Real-time communication)
CORS, Morgan, Dotenv
β¨ Key Features
β Secure User Signup & Login (JWT Authentication) β Create, Edit & Delete Posts β Upload Images with Posts (via Cloudinary) β Like & Comment on Posts β Real-Time Updates using Socket.io β Responsive Modern UI using TailwindCSS β Clean Folder Structure & Type-Safe Frontend (TypeScript)
π Folder Structure linkedin-clone/ β βββ backend/ β βββ src/ β β βββ models/ β β β βββ user.model.js β β β βββ post.model.js β β βββ routes/ β β βββ controllers/ β β βββ middlewares/ β β βββ server.js β βββ .env β βββ package.json β βββ frontend/ βββ src/ βββ public/ βββ tsconfig.json βββ package.json βββ vite.config.ts
βοΈ Installation Guide π§ Backend Setup cd backend npm install
Create a .env file:
PORT=5000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret CLOUDINARY_CLOUD_NAME=your_cloud_name CLOUDINARY_API_KEY=your_api_key CLOUDINARY_API_SECRET=your_api_secret
Run the backend server:
npm run dev
β‘οΈ Backend runs at http://localhost:5000
π» Frontend Setup cd frontend npm install
Create a .env file:
VITE_API_URL=http://localhost:5000
Run the frontend app:
npm run dev
β‘οΈ Frontend runs at http://localhost:5173
π§ͺ API Endpoints Method Endpoint Description POST /api/auth/signup Register new user POST /api/auth/login Login existing user GET /api/posts Get all posts POST /api/posts Create new post PUT /api/posts/:id Edit post DELETE /api/posts/:id Delete post POST /api/posts/:id/like Like/Unlike post POST /api/posts/:id/comment Add comment
πΌοΈ Screenshots
π Deployment
Frontend: Deployed on Vercel
Backend: Deployed on Render
Database: Hosted on MongoDB Atlas
π¨βπ» Author
Ankit Tripathi Full Stack Developer (MERN + TypeScript) π§ ankittripathi559@gmail.com
π GitHub: https://github.com/ankittrip
π Live Project: LinkedIn Clone App
π License
This project is licensed under the ISC License.
π§ Future Enhancements
Add user connections (follow/friend system)
Add profile picture & bio section
Implement notifications & real-time comments
Improve UI animations and loading states



