Skip to content

Code-Compilers/CC-MOVIES

Repository files navigation

🎬 Movie Database

This is a React-based movie database application that allows users to search for movies and view details about them. The application fetches data from The Movie Database (TMDB) API.

✨ Features

  • πŸ” Search for movies by title
  • 🌟 View popular movies on the home page
  • πŸ“ Click on a movie to view detailed information, including genres, overview, release date, and rating
  • πŸ“± Responsive design

πŸ› οΈ Getting Started

Prerequisites

  • Node.js and npm installed on your machine

Installation

  1. Clone the repository:

    git clone https://github.com/Code-Compilers/CC-MOVIES.git
    cd CC-MOVIES
  2. Install the dependencies:

    npm install
  3. Create a .env file in the root directory and add your TMDB API key:

    REACT_APP_TMDB_API_KEY=your_api_key_here

πŸš€ Running the Application

  1. Start the development server:

    npm start
  2. Open your browser and navigate to http://localhost:3000.

πŸ“¦ Building the Application

  1. Build the app for production to the build folder:

    npm run build
  2. It correctly bundles React in production mode and optimizes the build for the best performance.

πŸ§ͺ Running Tests

  1. Launch the test runner in the interactive watch mode:

    npm test

πŸ“‚ Project Structure

CC-MOVIES/ β”œβ”€β”€ public β”‚ β”œβ”€β”€ index.html β”œβ”€β”€ src β”‚ β”œβ”€β”€ components | | β”œβ”€β”€ HeroSlide.css | | β”œβ”€β”€ HeroSlide.js | | β”œβ”€β”€ MovieCard.css | | β”œβ”€β”€ MovieCard.js | | β”œβ”€β”€ MovieList.css | | β”œβ”€β”€ MovieList.js | | β”œβ”€β”€ SearchBar.js β”‚ β”œβ”€β”€ pages β”‚ β”‚ β”œβ”€β”€ HomePage.css | | β”œβ”€β”€ HomePage.js | | β”œβ”€β”€ MovieDetails.css | | └── MovieDetails.js β”‚ β”œβ”€β”€ App.js β”‚ β”œβ”€β”€ App.css β”‚ β”œβ”€β”€ index.js β”‚ β”œβ”€β”€ index.css β”‚ β”œβ”€β”€ reportWebVitals.js β”œβ”€β”€ .env β”œβ”€β”€ .gitignore β”œβ”€β”€ package-lock.json β”œβ”€β”€ package.json └── README.md