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