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.
- 🔍 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
- Node.js and npm installed on your machine
-
Clone the repository:
git clone https://github.com/Code-Compilers/CC-MOVIES.git cd CC-MOVIES
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your TMDB API key:REACT_APP_TMDB_API_KEY=your_api_key_here
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
.
-
Build the app for production to the
build
folder:npm run build
-
It correctly bundles React in production mode and optimizes the build for the best performance.
-
Launch the test runner in the interactive watch mode:
npm test
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