Sign inSign up

manish857/netflix-clone

By manish857

โ€ขUpdated about 1 year ago

Image
0

352

manish857/netflix-clone repository overview

Netflix Clone ๐ŸŽฌ About This Course:

โš›๏ธ Tech Stack: React.js, Node.js, Express.js, MongoDB, Tailwind ๐Ÿ” Authentication with JWT ๐Ÿ“ฑ Responsive UI ๐ŸŽฌ Fetch Movies and Tv Show ๐Ÿ”Ž Search for Actors and Movies ๐ŸŽฅ Watch Trailers ๐Ÿ”ฅ Fetch Search History ๐Ÿฑโ€๐Ÿ‘ค Get Similar Movies/Tv Shows ๐Ÿ’™ Awesome Landing Page ๐ŸŒ Deployment ๐Ÿš€ And Many More Cool Features ๐Ÿ“ Project Structure netflix-clone/ โ”œโ”€โ”€ backend/ # Express.js backend API โ”œโ”€โ”€ frontend/ # React + Vite frontend app โ”œโ”€โ”€ Dockerfile # Dockerfile for fullstack app โ”œโ”€โ”€ .env # Environment variables (not committed) โ”œโ”€โ”€ Jenkinsfile # CI/CD pipeline config for Jenkins โ”œโ”€โ”€ k8s/ # Kubernetes manifests โ”‚ โ”œโ”€โ”€ deployment.yaml # K8s deployment config โ”‚ โ””โ”€โ”€ service.yaml # K8s service config โ””โ”€โ”€ README.md # Project documentation

Setup .env file inside the backend folder then fill all require details PORT=5000 MONGO_URI=your_mongo_uri NODE_ENV=development JWT_SECRET=your_jwt_secre TMDB_API_KEY=your_tmdb_api_key ๐Ÿงช Run Locally with Docker Make sure Docker is installed and running on your system. Ensure that the .env file is created in the backend or root folder before running the container.

๐Ÿณ Step 1: Build the Docker Image Run this command from your project root (where the Dockerfile is located):

docker build -t netflix-clone:latest .

๐Ÿš€ Step 2: Run the Docker Container Expose both the backend and frontend ports:

=> docker run -itd -p 5000:5000 -p 5173:5173 netflix-clone:latest ๐ŸŒ Step 3: Access the Application

Backend API: http://localhost:5000โ  Frontend UI: http://localhost:5173โ  ๐Ÿงช Run Locally with Docker Hub Make sure Docker is installed and running on your system. Ensure that the .env file is created in the backend or root folder before running the container.

๐Ÿณ Step 1: Pull the Docker Image

Run this command to pull the image from Docker Hub:

docker pull manish857/netflix-clone:latest ๐Ÿš€ Step 2: Run the Docker Container

Expose both the backend and frontend ports:

docker run -itd -p 5000:5000 -p 5173:5173 manish857/netflix-clone:latest ๐ŸŒ Step 3: Access the Application

Backend API: http://localhost:5000โ  Frontend UI: http://localhost:5173โ 

Tag summary

Content type

Image

Digest

sha256:38a732e28โ€ฆ

Size

454.5 MB

Last updated

about 1 year ago

docker pull manish857/netflix-clone