A beautiful, fast, and responsive movie browsing app built with React, Vite, Tailwind CSS, and TMDb API. CineMax lets you discover trending movies, search by genre, view detailed information, and curate your personal watchlist.
- Explore Movies – Browse trending and popular movies from TMDb.
- Search & Filter – Search movies by title and filter by genre.
- Detailed View – Get full movie info: rating, release, runtime, overview, and genres.
- Watchlist – Add/remove movies to your personal watchlist (saved using
localStorage). - Client-side Routing – Built with React Router for seamless navigation.
- Responsive UI – Works great on mobile, tablet, and desktop.
- Blazing Fast – Built using Vite and optimized Tailwind CSS.
| Tech | Description |
|---|---|
| React | JavaScript library for UI |
| React Router | SPA routing |
| Tailwind CSS | Utility-first CSS framework |
| Vite | Next-generation frontend tooling |
| TMDb API | Movie data API |
Clone the repo and install dependencies:
git clone https://github.com/your-username/cinemax.git
cd cinemax
npm installStart the development server:
npm run devThis app uses the TMDb API. To run the app:
-
Create a free TMDb account and generate an API key.
-
Replace the hardcoded API key in the fetch URLs:
const res = await fetch(`https://api.themoviedb.org/3/movie/${id}?api_key=YOUR_API_KEY`);
(Optional: Move this to
.envfor better security.)
## Folder Structure
```bash
CinepMax/
├── node_modules/
│
├── src/
│ ├── components/
│ │ ├── Banner.jsx
│ │ ├── MovieCards.jsx
│ │ ├── MovieDetails.jsx
│ │ ├── Movies.jsx
│ │ ├── Navbar.jsx
│ │ ├── Pagination.jsx
│ │ └── WatchList.jsx
│ ├── App.jsx
│ ├── main.jsx
│ ├── index.css
├── .gitignore
├── package.json
└── index.html
├── package-lock.json
├── vite.config.js
├── README.md
└── logofav.jpg
You can deploy this app easily on:
If you're using React Router, don’t forget to add a
_redirectsfile for Netlify:
/* /index.html 200
- Lazy loading images for faster performance
- Dark/light mode toggle
- Genre-based movie discovery
- PWA support for offline access
Mohataseem Khan Connect with me: LinkedIn • GitHub
Made with ❤️ for movie lovers.