Netflix Clone is a MERN stack application inspired by Netflix, offering functionalities such as user authentication, movie browsing, and watchlist management.
Clone the repository and install dependencies for both backend and frontend.
git clone https://github.com/yaksh9737/Netflix-clone.git
cd Netflix-cloneNavigate to the backend folder and install dependencies:
cd backend
npm installCreate a .env file in the backend directory with the following
content:
PORT=5000
MONGO_URI=your_mongo_uri
NODE_ENV=development
JWT_SECRET=your_jwt_secret
TMDB_API_KEY=your_tmdb_api_keyReplace placeholders with your configurations: - MONGO_URI: MongoDB
connection string - JWT_SECRET: JSON Web Token secret -
TMDB_API_KEY: API key from TMDB
Build and start the backend server:
npm run build
npm startNavigate to the frontend folder and install dependencies:
cd ../frontend
npm installCreate a .env file in the frontend directory with the following
content:
NEXT_PUBLIC_API_URL=http://localhost:5000Start the frontend server:
npm run build
npm startThe application should now be accessible at http://localhost:3000.
- Register and Log In:
- Create an account via the sign-up page.
- Log in using the registered credentials.
- Browse Movies and Shows:
- View popular, top-rated, and upcoming movies and TV shows.
- Use the search functionality to find specific content.
- Manage Your Watchlist:
- Add movies or shows to your watchlist by clicking "Add to Watchlist."
- Access your watchlist from the user profile.
- Watch Trailers:
- View details and trailers for selected movies or shows.
Pull requests are welcome! For significant changes, please open an issue to discuss your ideas first. Ensure that tests are updated as necessary.
Happy Streaming! 🎥