A modern video streaming application built with Next.js 15, Node.js, MongoDB, and Ant Design.
- 🔐 Phone-based authentication with OTP verification
- 👥 Multiple login/logout sessions
- 🎬 Full-featured video player with controls
- 🎨 Modern UI with Ant Design
- 📦 Code splitting and scalable architecture
- Frontend: Next.js 15, React 19, Ant Design
- Backend: Node.js, Express, MongoDB
- Authentication: JWT tokens
- Video Streaming: Adaptive bitrate with HLS/DASH
next js 15/
├── striming-app/
│ ├── frontend/ # Next.js 15 application
│ ├── backend/ # Node.js/Express API
│ ├── package.json # Root workspace configuration
│ └── API_DOCUMENTATION.md
└── README.md # This file
- Node.js 18+
- MongoDB 6+
- npm or yarn
- Navigate to the project directory:
cd "next js 15/striming-app"- Install all dependencies:
npm run install:all- Setup environment variables:
Create .env files in both frontend and backend directories (see .env.example files)
- Start development servers:
npm run devThis will start:
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
NEXT_PUBLIC_API_URL=http://localhost:5000
PORT=5000
MONGODB_URI=mongodb://localhost:27017/striming-app
JWT_SECRET=your-secret-key-change-in-production
JWT_EXPIRES_IN=7d
OTP_SECRET=your-otp-secret-key
TWILIO_ACCOUNT_SID=your-twilio-sid
TWILIO_AUTH_TOKEN=your-twilio-token
TWILIO_PHONE_NUMBER=your-twilio-number
Backend only:
cd striming-app/backend
npm run devFrontend only:
cd striming-app/frontend
npm run devAPI endpoints are available at /api routes. See striming-app/API_DOCUMENTATION.md for details.
MIT