A web application for discovering popular movies using The Movie Database (TMDB) API. Built with Next.js 16
- npm or yarn
- A TMDB API key
-
Install dependencies
npm install
-
Configure environment variables
Copy the example environment file:
cp .env.example .env.local
-
Add your API key to
.env.localOpen
.env.localand replaceyour_api_key_herewith your actual API key:NEXT_PUBLIC_TMDB_API_KEY=your_actual_api_key_here NEXT_PUBLIC_TMDB_BASE_URL=https://api.themoviedb.org/3 NEXT_PUBLIC_TMDB_IMAGE_BASE_URL=https://image.tmdb.org/t/p
-
Run the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
Run the test suite:
npm testRun tests in watch mode for development:
npm run test:watchGenerate coverage report:
npm run test:coverageISC