Introducing our fully functional and responsive movie app! Watch daily and weekly popular movies, get advanced features like Infinite Scroll and Lazy Loading, and browse our extensive collection with detailed info, filters, and recommendations. Enjoy a seamless experience with error handling and fast data retrieval. Sign up now and start watching your favorites!
-
First, you need to clone or fork the movie app repo to your local machine. You can do this by using the git clone command followed by the repo URL. Or, if you prefer to fork, go to the repo page and click on the "Fork" button in the top right corner.
-
Once you have the repo on your machine, navigate to the root directory of the app in your terminal and run the command "npm install". This will install all the necessary dependencies for the app to run.
-
Next, navigate to the "movie" directory in app by running the command "cd movie", and run the command "npm install" again. This will install additional dependencies specific to the movie app.
-
To access the movie data, you'll need to create an API key from the TMDB site. First, create an account on their site, and then go to the "Settings" page to create an API key. Once have the API key, create a new file in the root directory called ".env" and add the following line to it:
VITE_APP_TMDB_TOKEN=YOUR_API_KEY
-
Make sure to replace "YOUR_API_KEY" with your actual TMDB API key. You can also add the site URL to this file with the following line:
SITE_URL=https://www.themoviedb.org/
Now that you have all the necessary dependencies and API key set up, you can run the app locally by running the command "yarn dev". This will spin up the application, and you can access it by going to "http://localhost:3000" in your web browser.
- Finally, enjoy browsing through the movie app and finding your favorite movies!