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/
👤 Orhan Özkerçin
- HTML5
- CSS3
- React Hooks
- Tmbd Api
- 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.
- 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.
- Navbar.jsx : This component is responsable for navbar as you can understand. I styled this navbar with
Navbar.css
- 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 inHero.css
- 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.
In the project directory, you can run:
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
Note: this is a one-way operation. Once you eject
, you can’t go back!