A modern, responsive React application that allows users to search and explore movies using TMDB API. Features a beautiful UI with dark/light mode support and real-time search capabilities.
- 🔍 Real-time movie search functionality
- 🌓 Dark/Light mode toggle
- 📱 Responsive design for all devices
- 🎯 Popular movies showcase
- ⚡ Fast and efficient search with debouncing
- 🎨 Beautiful UI with animated background shapes
Application in Light Mode - Showcasing the movie search interface
Application in Dark Mode - Featuring the elegant dark theme
- Node.js (v14 or higher)
- npm
- TMDB API Key (Free)
- Visit TMDB Website and create a free account
- After logging in, go to your profile settings
- Click on the "API" section in the left sidebar
- Request a new API key for a "Developer" account
- Fill in the required application details
- Once approved, copy your API key (v3 auth)
- Create a new file
src/config/apiConfig.js:
export const API_KEY = 'your_api_key_here';
export const BASE_URL = 'https://api.themoviedb.org/3';If you prefer, you can add the API key directly in src/services/API.js:
- Open
src/services/API.js - Uncomment and modify these lines at the top of the file:
// const API_KEY = 'your_api_key_here';
// const BASE_URL = 'https://api.themoviedb.org/3';- Clone the repository:
git clone [your-repository-url]- Navigate to the project directory:
cd film-bank-react-API- Install dependencies:
npm install- Create a
.envfile in the root directory and add your TMDB API key:
REACT_APP_TMDB_API_KEY=your_api_key_here- Start the development server:
npm run dev- Open your browser and visit:
http://localhost:5173
To create a production build:
npm run build- React.js
- Vite - Next Generation Frontend Tooling
- React Router DOM
- TMDB API
- CSS3 with custom animations
- Context API for theme management
- Search Movies: Type in the search bar to find movies in real-time
- Toggle Theme: Click the sun/moon icon to switch between light and dark modes
- View Movie Details: Click on any movie card to see more information
- Browse Popular Movies: The home page displays popular movies by default
Contributions are welcome! Feel free to submit issues and pull requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- The Movie Database (TMDB) for providing a comprehensive, free API for movie data. This product uses the TMDB API but is not endorsed or certified by TMDB.
- Icons and emojis from OpenMoji
Rezwanullah Quraishi
- GitHub: @Rezwanullah
- LinkedIn: Rezwanullah Quraishi
Made with ❤️ by Rezwanullah Quraishi