This is a full-stack Netflix clone built with modern web technologies, providing an immersive movie-watching experience. The project includes authentication, movie & TV show browsing, search functionality, and user-protected routes.
✅ User Authentication (Login/Register) 🔑 ✅ Browse Movies & TV Shows 🎥📺 ✅ Search Functionality 🔍 ✅ Protected Routes (Only logged-in users can access certain features) 🔐 ✅ Backend API for movies, TV shows, and authentication ⚙️ ✅ Responsive Frontend built with React and Tailwind CSS 🎨 ✅ State Management using Zustand ⚡
- ⚛ React
- 🎨 Tailwind CSS
- 📌 Zustand (State Management)
- 🌍 React Router
- 🌐 Axios
- 🎶 React Player
- 🔥 React Hot Toast
- 🏗 Node.js & Express.js
- 🛢 MongoDB & Mongoose
- 🔑 JSON Web Tokens (JWT) for authentication
- 🛠 bcryptjs for password hashing
- 🔐 Cookie parser for authentication
- 🌿 dotenv for environment variables
Make sure you have installed:
- 🖥 Node.js
- 📦 npm or yarn
- 🗄 MongoDB
git clone https://github.com/yourusername/netflix-clone.git
cd netflix-clonecd backend
npm installCreate a .env file in the backend directory and add your environment variables:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
NODE_ENV=development
TMDB_API_KEY=your_tmdb_api_keyStart the backend server:
npm run devcd frontend
npm installStart the frontend server:
npm run devTo build the frontend and backend, run:
npm run buildTo start the production server:
npm startnetflix-clone/
├── backend/
│ ├── config/
│ ├── middleware/
│ ├── models/
│ ├── routes/
│ ├── server.js
│ ├── .env
│ └── package.json
│
├── frontend/
│ ├── src/
│ ├── public/
│ ├── dist/
│ ├── index.html
│ ├── package.json
│ └── tailwind.config.js
│
└── README.md
POST /api/v1/auth/register- Register a new userPOST /api/v1/auth/login- Login userGET /api/v1/auth/logout- Logout user
GET /api/v1/movie- Fetch popular moviesGET /api/v1/movie/:id- Fetch movie details
GET /api/v1/tv- Fetch popular TV showsGET /api/v1/tv/:id- Fetch TV show details
GET /api/v1/search?q=query- Search for movies or TV shows
Contributions are welcome! 🎉 Fork the repository and submit a pull request.
This project is licensed under the MIT License. 📜
🚀 Enjoy Watching! 🍿





