A React + Vite application designed to showcase a collection of movies. The app provides an intuitive and user-friendly interface for browsing movies, viewing their details, and organizing favorites.
- Home Page: Displays the most popular movies with their name, poster, and release date, retrieved from the The Movie Database API.
- Search Functionality: Search for movies directly from the database via a search box.
- Favorites Page: Add movies to your favorites and view your curated list of favorite movies.
The Home Page shows the most popular movies with a search box to find specific titles.
Search for movies directly by typing in the search box. The app fetches matching results from the API.
View your favorite movies on a dedicated Favorites Page.
- Node.js (v14 or later)
- NPM or Yarn
-
Clone the repository:
git clone https://github.com/lbte/cinema-vault.git cd cinema-vault -
Install dependencies:
npm install
-
Create a .env file in the root directory and add your The Movie Database API key (which you get by creating an account > go to settings > API):
VITE_API_KEY=your_api_key_here
-
Start the development server:
npm run dev
Open the link that is shown in the console.
- Most Popular Movies: Fetches the most popular movies to display on the Home Page.
https://api.themoviedb.org/3/movie/popular?api_key=your_api_key_here - Search Movies: Searches for movies based on the user's input.
https://api.themoviedb.org/3/search/movie?api_key=your_api_key_here&query=<movie_name>


