A react application that displays popular movies and allows you to favourite and search for numerous movies from The Movie Database (TMDB).
To run the application:
- Install node.js from https://nodejs.org/en
- In a code editor or terminal, create a new folder of a relevant name and move to it in an open terminal
- In the open terminal, enter 'npm create vite@latest'. It will tell you to enter a project name and package name. It will then say select a framework, select React and then select Javascript as the variant (up to your discretion).
- Move to the directory of the package/project name and then enter 'npm install'
- Replace the 'src' directory in the current directory with the src folder in main (the single parent folder in this repo)
- In src/services/movieAPI.js, you must replace the string on the first line with your own API key from TMDB (make an account, go to settings/API and go through the process)
- Enter 'npm install react-router-dom' to install an additional library we need
- Enter 'npm run dev' and go to the where the application is locally hosted
Yay you've successfully ran a react application! Any problems, go to the start of the video at https://www.youtube.com/watch?v=G6D9cBaLViA&t=668s