Moviefinder is a typical Next.js application built using Redux Toolkit, Material UI, Next.js, and TypeScript. This app allows users to browse a list of the most popular movies and view detailed information about each movie when clicked. Before running the app, make sure to configure the environment variable NEXT_PUBLIC_THEMOMOVIE_API_TOKEN
and set it to your access token, which can be obtained from here.
To run this application, you need to have Node.js and yarn (Node Package Manager) installed on your machine. You can download Node.js from the official website: https://nodejs.org.
- Clone the repository to your local machine:
git clone https://github.com/Mandy9943/movie-finder.git
cd movie-finder
- Install the required dependencies:
yarn install
Before running the application, you need to obtain an access token from The Movie Database (TMDb). Follow the steps below to configure the app with your access token:
- Go to https://www.themoviedb.org/settings/api and create an account or log in if you already have one.
- Once logged in, navigate to the "API" section, and under "API Key (v3 auth)," click on the "Create" button to generate a new API key.
- Copy the generated API key.
To start the development server and run the app, use the following command:
yarn run dev
The app should now be accessible at http://localhost:3000
.
In the project directory, you can run the following scripts:
yarn run dev
: Starts the development server.yarn run build
: Builds the production-ready app for deployment.yarn start
: Starts the production server to serve the built app.yarn run lint
: Runs ESLint to lint your code.yarn run post-update
: This script is for CodeSandbox preview only and triggers a package update.
The app relies on the following dependencies:
@emotion/cache
: ^11.11.0@emotion/react
: ^11.11.1@emotion/server
: ^11.11.0@emotion/styled
: ^11.11.0@mui/icons-material
: ^5.14.1@mui/material
: ^5.14.2@reduxjs/toolkit
: ^1.9.5clsx
: ^2.0.0next
: ^13.4.12query-string
: ^8.1.0react
: ^18.2.0react-country-flag
: ^3.1.0react-dom
: ^18.2.0react-redux
: ^8.1.1
The following dev dependencies are used for development purposes:
@types/node
: ^20.4.5@types/react
: ^18.2.17eslint
: ^8.46.0eslint-config-next
: ^13.4.12typescript
: ^5.1.6
Thank you for using Moviefinder app! If you have any questions or need further assistance, please don't hesitate to contact us. Happy movie browsing! 🎬🍿