The Movie Explorer App is a web application built using Next.js 15 that allows users to browse movies, search for specific ones, and view detailed information. Users can also add movies to their favorites and manage their collection.
- User login and registration using NextAuth.js
- Authentication state stored in cookies.
- Main features accessible only to logged-in users.
- Fetches and displays movies from the TMDB API.
- Shows poster, title, and rating for each movie.
- Supports pagination.
- Includes a search bar for dynamic movie search.
- Fetches search results from the API and displays them.
- Clicking a movie navigates to a detailed page (/movie/[id]).
- Displays title, description, rating, release date, and more.
- Users can add/remove movies from their favorites.
- Favorite movies are stored in MONGODB.
- Includes a "My Favorites" page to view saved movies.
- Responsive design using Tailwind CSS.
- Next.js Image Optimization for faster image loading.
- Loading skeletons for better user experience.
Home Page
Login Page
Register Page
Query Search Page
Movie Details Page
Added Favourite movie
Pagination
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Authentication: NextAuth.js
- API: TMDB API
- Deployment: Vercel
# Clone the repository
git clone https://github.com/SARVESHYOGI/movie-explorer-app.git
# Install dependencies
npm install
# Set up environment variables
# Create a `.env.local` file in the root directory and add:
NEXT_PUBLIC_TMDB_API_KEY=your_tmdb_api_key
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
API_ACCESS_TOKEN=your_tmdb_api_access_token
MONGODB_URI=mongodb_uri
# Run the development server
npm run dev
# Open in your browser
http://localhost:3000
- API: The Movie Database (TMDB) API.
- Framework: Next.js
- Styling: Tailwind CSS
For any queries, reach out via [[email protected]] or open an issue on GitHub.
Happy Coding! 🚀