Full-stack Next.js + TypeScript + MongoDB video platform.
npm installnpm run dev- Open http://localhost:3000
Local development starts a temporary MongoDB automatically and seeds demo videos. Data stored in the temporary database is reset when the dev server stops. Set MONGODB_URI in .env.local to use a persistent MongoDB instance instead.
Likes, subscriptions, watch history, and Watch later are saved in the current browser and are not synced across devices.
- GET/POST
/api/videos - GET/PATCH/DELETE
/api/videos/:id - GET/POST
/api/comments
The starter seed creates demo videos automatically on first home-page load. Replace demo media URLs with your own Cloudinary URLs for production uploads.