Skip to content

A modern streaming platform UI built with Next.js 15, React 19, TypeScript, and Tailwind CSS v4. Features a comprehensive design system with reusable components, cinematic hero sections, and responsive layouts.

License

Notifications You must be signed in to change notification settings

ritishBhatoye/cinenext

Repository files navigation

🎬 CineNext - AI-Powered Movie Streaming Platform

A modern, intelligent movie streaming platform built with cutting-edge AI technology for personalized recommendations and enhanced user experience.

✨ Features

πŸ€– AI-Powered Recommendations

  • Smart Content Discovery: Gemini AI analyzes viewing patterns and preferences
  • Personalized Suggestions: Machine learning algorithms for tailored movie recommendations
  • Mood-Based Recommendations: AI understands user context and suggests content accordingly
  • Similar Content Matching: Advanced similarity algorithms for "More Like This" features

πŸŽ₯ Streaming Experience

  • High-Quality Streaming: Adaptive bitrate streaming for optimal viewing experience
  • Multi-Device Support: Seamless experience across desktop, tablet, and mobile
  • Offline Downloads: Save content for offline viewing
  • Watch History: Track and resume viewing progress across devices

πŸ‘€ User Experience

  • Intelligent Search: AI-enhanced search with natural language processing
  • Smart Playlists: Auto-generated playlists based on preferences
  • Social Features: Share recommendations and create watchlists with friends
  • Accessibility: Full screen reader support and keyboard navigation

πŸ“Š Analytics & Insights

  • Viewing Analytics: Detailed insights into user behavior and preferences
  • Content Performance: Track popular content and engagement metrics
  • A/B Testing: Optimize recommendations through continuous testing

πŸ› οΈ Tech Stack

Frontend

Backend & Database

AI & Machine Learning

State Management & Data

Media & Streaming

Development & Deployment

  • Vercel - Deployment and hosting
  • ESLint - Code linting with strict rules
  • Prettier - Code formatting
  • Husky - Git hooks for quality assurance

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ and npm
  • Supabase account
  • Google Cloud account (for Gemini AI)

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/cinenext.git
    cd cinenext
  2. Install dependencies

    npm install
  3. Environment Setup

    cp .env.example .env.local

    Fill in your environment variables:

    # Supabase
    NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
    SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
    
    # Gemini AI
    GOOGLE_AI_API_KEY=your_gemini_api_key
    
    # Other APIs
    TMDB_API_KEY=your_tmdb_api_key
    NEXT_PUBLIC_APP_URL=http://localhost:3000
  4. Database Setup

    npm run db:setup
  5. Start development server

    npm run dev

Visit http://localhost:3000 to see your application.

πŸ“ Project Structure

cinenext/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ (auth)/            # Authentication routes
β”‚   β”‚   β”œβ”€β”€ (dashboard)/       # Main app routes
β”‚   β”‚   β”œβ”€β”€ api/               # API routes
β”‚   β”‚   └── globals.css        # Global styles
β”‚   β”œβ”€β”€ components/            # Reusable components
β”‚   β”‚   β”œβ”€β”€ ui/                # shadcn/ui components
β”‚   β”‚   β”œβ”€β”€ features/          # Feature-specific components
β”‚   β”‚   └── layout/            # Layout components
β”‚   β”œβ”€β”€ lib/                   # Utility functions
β”‚   β”‚   β”œβ”€β”€ ai/                # AI integration
β”‚   β”‚   β”œβ”€β”€ supabase/          # Supabase client
β”‚   β”‚   └── utils.ts           # Helper functions
β”‚   β”œβ”€β”€ store/                 # Redux store
β”‚   β”‚   β”œβ”€β”€ slices/            # Redux slices
β”‚   β”‚   └── api/               # RTK Query APIs
β”‚   β”œβ”€β”€ types/                 # TypeScript definitions
β”‚   └── hooks/                 # Custom React hooks
β”œβ”€β”€ public/                    # Static assets
β”œβ”€β”€ supabase/                  # Supabase configuration
β”‚   β”œβ”€β”€ migrations/            # Database migrations
β”‚   └── functions/             # Edge functions
└── docs/                      # Documentation

πŸ”§ Available Scripts

# Development
npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server

# Code Quality
npm run lint         # Run ESLint
npm run lint:fix     # Fix ESLint issues
npm run type-check   # TypeScript type checking
npm run format       # Format code with Prettier

# Database
npm run db:setup     # Setup database schema
npm run db:migrate   # Run migrations
npm run db:seed      # Seed database with sample data

# Testing
npm run test         # Run tests
npm run test:watch   # Run tests in watch mode
npm run test:e2e     # Run end-to-end tests

πŸ€– AI Features Implementation

Recommendation Engine

The AI recommendation system uses multiple approaches:

  1. Collaborative Filtering: Analyzes user behavior patterns
  2. Content-Based Filtering: Matches content attributes
  3. Hybrid Approach: Combines multiple algorithms for better accuracy
  4. Real-time Learning: Continuously improves based on user interactions

Gemini AI Integration

// Example: Getting AI recommendations
const getAIRecommendations = async (
  userId: string,
  preferences: UserPreferences
) => {
  const prompt = `Based on user preferences: ${JSON.stringify(preferences)}, 
                  recommend 10 movies with explanations.`;

  const result = await gemini.generateContent(prompt);
  return parseRecommendations(result.response.text());
};

πŸ” Authentication & Security

  • Supabase Auth: Secure authentication with multiple providers
  • Row Level Security (RLS): Database-level security policies
  • JWT Tokens: Secure API communication
  • Rate Limiting: API protection against abuse
  • Content Security Policy: XSS protection

πŸ“± Responsive Design

Built with mobile-first approach:

  • Breakpoints: Tailored for all screen sizes
  • Touch Gestures: Optimized for mobile interactions
  • Progressive Web App: Installable on mobile devices
  • Offline Support: Core functionality works offline

πŸš€ Deployment

Vercel (Recommended)

npm run build
vercel --prod

Docker

docker build -t cinenext .
docker run -p 3000:3000 cinenext

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support


Built with ❀️ by the CineNext Team

Website β€’ Twitter β€’ LinkedIn

About

A modern streaming platform UI built with Next.js 15, React 19, TypeScript, and Tailwind CSS v4. Features a comprehensive design system with reusable components, cinematic hero sections, and responsive layouts.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published