A modern movie and TV show discovery application built with NextJS, featuring trending content, search functionality, and media playback.
- Browse trending movies and TV shows
- Search for specific content
- View detailed information about movies and shows
- Episode-by-episode viewing for TV series
- Responsive design for all devices
- Modern UI with smooth animations
- NextJS 14 - React framework with App Router
- React 18 - UI library
- CSS3 - Styling and animations
- TMDB API - Movie and TV show data
- Node.js 18+
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd Flyx- Install dependencies:
npm install-
Set up environment variables:
- Copy
.env.exampleto.env.local - Get your TMDB API key from https://www.themoviedb.org/settings/api
- Add your API key to
.env.local:
NEXT_PUBLIC_TMDB_API_KEY=your_actual_api_key_here - Copy
-
Start the development server:
npm run dev- Open http://localhost:3000 in your browser.
npm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLint
app/
├── components/ # React components
├── context/ # React context providers
├── globals.css # Global styles
├── layout.js # Root layout
└── page.js # Home page
public/ # Static assets
This project has been successfully migrated from Create React App to NextJS 14 with the following improvements:
- Better Performance: Server-side rendering and optimizations
- Improved SEO: Better search engine optimization
- Modern Routing: File-based routing system
- Enhanced Developer Experience: Better debugging and development tools
The app integrates with TMDB (The Movie Database) API for:
- Trending content
- Search functionality
- Detailed movie/show information
- Season and episode data
- Create a free account at https://www.themoviedb.org/signup
- Go to your account settings: https://www.themoviedb.org/settings/api
- Request an API key (choose "Developer" option)
- Copy your API key and add it to your
.env.localfile
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License.