Movie Finder is a modern React-based application built with Vite. It allows users to browse popular movies, search for specific titles, and save favourite movies. It uses clean, responsive design and organizes logic using components, contexts, and modular CSS.
- 🔍 Search Movies: Instantly fetch movies based on your query.
- 🌟 Popular Movies: Loads trending movies on startup.
- ❤️ Favourites: Add and view your favourite movies.
- 🧠 Context API: Manage global favourite state.
- ⚡ Fast & Responsive UI: Built with Vite and modular CSS.
git clone https://github.com/your-username/movie-finder.git
cd movie-findernpm installCreate a .env file in the root directory:
VITE_API_KEY=your_api_key_here💡 Replace
your_api_key_herewith your TMDB or OMDB API key.
npm run devmovie-finder/
│
├── public/
├── src/
│ ├── assets/ # Images or logos
│ ├── components/ # Reusable components (MovieCard, NavBar)
│ ├── contexts/ # MovieContext for managing favourites
│ ├── css/ # Modular CSS files
│ │ ├── App.css
│ │ ├── Favourites.css
│ │ ├── Home.css
│ │ └── index.css
│ ├── pages/ # Page components (Home, Favourites)
│ ├── services/ # API functions
│ ├── App.jsx # Root component
│ ├── main.jsx # Vite entry file
│
├── .env # API key (gitignored)
├── .gitignore
├── index.html
├── vite.config.js
├── package.json
└── README.md
Make sure you’re using the correct API call format in services/api.js with the key accessed like this:
const API_KEY = import.meta.env.VITE_API_KEY;- ⚛️ React (with Hooks & Context API)
- ⚡ Vite
- 🎨 CSS Modules
- 📦 Fetch for API calls
- Movie data provided by TMDB
- Project inspired by modern movie apps and UIs


