Netflix clone built with Firebase authentication for users Here we can add movies or TV shows to our like page, or we can also remove them from that page. We can also filter the movies or TV shows according to genre.
netflix-clone is built using the following technologies:
- Frontend: React.js
- Backend: Node.js with Express.js
- Database: MongoDB
Before running netflix-clone, ensure that you have the following software installed:
-
Node.js: Make sure you have Node.js installed on your system. You can download it from the official Node.js website and follow the installation instructions for your operating system.
-
MongoDB: Install MongoDB and make sure it is running on your local machine or provide the connection details for a remote MongoDB database.
To install and run netflix-clone locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yash74880/netfilx-clone.git
-
Navigate to the cloned repository:
cd netflix-clone
-
Install the dependencies for the frontend:
cd client npm install
-
Install the dependencies for the backend:
cd ../server npm install
netflix-clone requires configuration for various services. Here are the steps to set up the required configuration:
-
Open the
server
directory. -
Create a
.env
file in this directory. -
Set the following environment variables in the
.env
file:-
MONGO_URL
: The MongoDB connection string. -
PORT
: 3000. -
JWT_KEY
: A secret key used for JWT token generation and validation.
-
-
Save the
.env
file.
After completing the configuration steps, you can now run netflix-clone locally.
- Start the backend server:
cd server node index.js
- Start the frontend development server:
cd ../client npm start
- Access netflix-clone in your browser at
http://localhost:3001
.