A comprehensive movie database application built with Next.js that provides users with access to detailed information about movies using TMDB API integration.
- Browse and search for movies
- View detailed movie information
- Server-side rendering for optimal performance
- MongoDB integration for data persistence
- API route handlers for efficient data fetching
- Frontend Framework: Next.js
- Database: MongoDB
- API Integration: TMDB (The Movie Database)
- Server Features:
- Next.js Server Actions
- API Route Handlers
- Server-Side Rendering
Before you begin, ensure you have:
- Node.js installed (version 14 or higher)
- MongoDB instance (local or Atlas)
- TMDB API access token
Create a .env.local
file in the root directory with the following variables:
TMDB_BEARER_TOKEN=your_tmdb_token_here
MONGODB_URI=your_mongodb_connection_string
BASE_URL=your_api_route_handler_url
- Clone the repository:
git clone https://github.com/AweSomeK101/cinema-central-nextjs.git
- Navigate to the project directory:
cd cinema-central-nextjs
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser to see the application.
This project uses the TMDB (The Movie Database) API for fetching movie data. Ensure you have:
- Created an account on TMDB
- Generated an API bearer token
- Added the token to your environment variables
The project is configured for easy deployment on Vercel. For other platforms, follow their respective deployment guides for Next.js applications.
Live Demo: Cinema Central
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.