🍿 usePopcorn is a React application for searching movies, viewing details, and managing your watched list. It leverages the OMDb API to fetch movie data and provides a user-friendly interface for movie enthusiasts.
- Movie Search: Search for movies by title using the OMDb API.
- Movie Details: View detailed information about selected movies.
- Watched List: Add movies to your watched list and rate them.
- Persistent Storage: Your watched list is saved in your browser's local storage.
- Star Rating: Rate movies with a custom star rating component.
- UI: Clean and modern interface built with React.
-
Clone the repository:
git clone <your-repo-url> cd usepopcorn
-
Install dependencies:
npm install
-
Start the development server:
npm start
The app will open at http://localhost:3000.
npm start- Run the app in development mode.npm run build- Build the app for production.npm test- Run tests.npm run eject- Eject configuration (not reversible).
This project uses the OMDb API for fetching movie data.
- Real-time search functionality
- Error handling for API requests
- Loading states for better UX
- Comprehensive movie information display
- Add to watched list functionality
- Custom rating system
- Persistent storage using localStorage
- Delete functionality
- Average rating calculation
This project is for educational purposes.