This project is a movie application built using Vite, consuming The Movie Database (TMDb) API.
Follow these instructions to set up and run the project locally on your machine.
- Node.js (npm) installed on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/fhareed1/movieBox-hng2
-
Navigate to the project directory:
cd movieBox
-
Install the required dependencies:
npm install
-
Create a .env file in the root folder of the project and add the following environment variables:
VITE_BASE_URL=https://api.themoviedb.org VITE_IMGBASE_URL=https://image.tmdb.org/t/p/original VITE_API_KEY=[Your_tmdb_API_key]
Replace [Your_tmdb_API_key] with your actual TMDb API key from https://www.themoviedb.org/settings/api
To run the project locally, use the following command:
```bash
npm run dev
```