OrhanOzkercin / netflix-clone-react

In this project I tried to imitate Netflix homepage with React. Used Tmdb Apı for that.

Home Page:http://netflix.orhanozkercin.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netflix-Clone

In this project my aim was imitate Netflix homepage. Data is coming from an API (https://www.themoviedb.org/documentation/api). I used React Hooks for this project. Project coded by me with following Clever Programming.

🎆✨ Live Demo => http://netflix.orhanozkercin.com/

Author ✍️

👤 Orhan Özkerçin

Built With

Installation

  • Step 1: You need to run yarn command on terminal.
  • Step 2: You need to have TMBD API Api key to get movies and series information.
  • Step 3: After you get api key, you need to reate .env.local file to your root folder and after that you need to define variable for your api key. I.E: REACT_APP_API_KEY = 'YOUR_API_KEY'
  • Step 4: After steps I mention above you can start your application with yarn start command.

Components and Files

Configuration Files

  • requests.jsx : In this file you can change genres of movies or you can add new categories. All of api endpoints I took from official documentation . If you want to add or change some stuff you need to look documentation for endpoints.
  • axios.js : In this file I added baseUrl I got from again official documentation. I used Axios which is package for http requests. I created baseUrl for endpoints in this file.

UI Components

  • Navbar.jsx : This component is responsable for navbar as you can understand. I styled this navbar with Navbar.css

nav

  • Hero.jsx : This component is responsable for hero section. In this component I managed for big picture that welcomes you and content on that picture. Pictures randomly changing from Netflix Originals everytime you reflesh the page. Styling about this component is managed in Hero.css

hero

  • Row.jsx : This component is responsable for each category that showing in all page. All categories are passing with props to this component. Row.css is style file for this component.

row

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

About

In this project I tried to imitate Netflix homepage with React. Used Tmdb Apı for that.

http://netflix.orhanozkercin.com/


Languages

Language:JavaScript 74.1%Language:CSS 14.3%Language:HTML 11.6%