This project is a Netflix clone application built with a React frontend and a Spring Boot backend. The project uses MySQL for the database, managed via phpMyAdmin using XAMPP. The application demonstrates various features and functionalities inspired by Netflix, emphasizing full-stack development and REST API integration.
- Node.js
- npm or yarn
- Java JDK (version 11 or higher)
- Spring Boot
- XAMPP (for MySQL and phpMyAdmin)
- Maven
- Download and install XAMPP.
- Open XAMPP Control Panel and start
Apache
andMySQL
. - Open phpMyAdmin by visiting
http://localhost/phpmyadmin/
in your browser. - Create a new database named
netflix
. - Import the provided SQL file to set up the initial database structure and data (if available).
-
Clone the repository to your local machine:
git clone https://github.com/Delving-Mage/Netflix_Clone.git cd Netflix_Clone/backend
-
Ensure you have Java JDK and Maven installed.
-
Update the database configuration in
src/main/resources/application.properties
:spring.application.name=backend spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/netflix?createDatabaseIfNotExist=true spring.datasource.username=root spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.jpa.show-sql=true
-
Navigate to the backend directory and run the backend application:
mvn spring-boot:run
Alternatively, you can run the main application class directly:
cd src/main/java/com/netflixClone/backend java BackendApplication.java
The backend will be running on
http://localhost:8080
. -
After running the backend for the first time, the
netflix
database will be created automatically, and thevideo_meta_data
table will be set up. -
To populate the
video_meta_data
table, import the SQL fileSQL/video_meta_data.sql
:- Open phpMyAdmin.
- Select the
netflix
database. - Navigate to the
Import
tab. - Choose the
SQL/video_meta_data.sql
file from the repository. - Click
Go
to execute the SQL script and populate the table.
-
Open a new terminal window, navigate to the frontend directory:
cd Netflix_Clone
-
Install the dependencies:
npm install # or yarn install
-
Start the React application:
npm start # or yarn start
The frontend will be running on
http://localhost:3000
.
- Visit
http://localhost:3000
to use the application. - Ensure the backend is running at
http://localhost:8080
for the frontend to interact with the backend APIs.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Make your changes
- Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-branch
) - Create a new Pull Request