About A React App that consumes TMDB API to display the current trending, upcoming, top rated, and popular movies and tv-shows.
Obtain our TMDB API KEY and place in a .env file
REACT_APP_API_KEY= ****
Then in your api call your can can access the KEY by using
...api_key=${process.env.REACT_APP_API_KEY}
-
Fuctional Components - JavaScript functions that accept props as an arguments and returns a React element(JSX).
-
Material UI - is a library of React UI components that implements Google's Material Design to easily develop apps.
-
React-router - routing library for react.
-
axios - Promise based HTTP client for the browser and node.js. e.tc
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
npm run 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.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify