Quick Start
Welcome to Streamix, a white-label subscription video-on-demand (SVOD) platform: a catalogue of films and series behind a paid plan, with viewer profiles, a full-screen player, curated home rows and an admin back office. It is built with Next.js 16 (App Router), React 19, TypeScript, PostgreSQL and Tailwind CSS.
"Streamix" is the placeholder brand. The site name, logo, colours and copy come from admin settings (Theme Options, App Branding, Landing page), so your members never see the template name.
Visitors can see the signed-out landing page, public title pages and the Help Centre. Watching needs an account and an active plan. Playback is checked on the server: the playback API refuses to return a stream to anyone without a live subscription.
New here? Read the Product Overview first, then come back to install.
What you need
- Node.js 20+ and npm
- A PostgreSQL database. Neon is recommended; a local Postgres also works.
- An S3-compatible bucket (Cloudflare R2 recommended) for artwork and video. You configure it in the admin after install, not in
.env. - A Pexels API key, only if you want the demo catalogue (
PEXELS_API_KEY).
Install in 5 steps
# 1. Install dependencies
npm install
# 2. Create .env with at least DATABASE_URL
# (the install wizard's database step can write it for you and generates
# JWT_SECRET and CRON_SECRET if they are missing)
# 3. Create the core schema
npm run db:init
# 4. Start the dev server
npm run dev
# 5. Open http://localhost:3000/install and finish the wizard
The wizard creates your admin account, activates the license and seeds the essential streaming data: maturity ratings, genres, moods, avatars, email templates, FAQs and legal pages.
Add storage, then demo content
- Sign in at
/admin/login. - Go to Settings → Add-ons → Storage and connect your bucket (Cloudflare R2, DigitalOcean Spaces, Amazon S3 or Google Cloud Storage). Mark it Active and Default.
- Allow browser uploads and playback from your domain:
npx tsx scripts/setup-r2-cors.ts https://your-domain.com
- Optionally load the demo catalogue and demo members:
npx tsx scripts/seed-ott.ts # ~35 titles, plans, rows, billboards, Top 10 (needs PEXELS_API_KEY)
npx tsx scripts/seed-demo-users.ts # demo members (password: Password@1)
npx tsx scripts/seed-subtitles.ts # an English subtitle track on a few demo titles
Demo members: premium@streamix.test, standard@streamix.test, basic@streamix.test (each with a plan and profiles) and member@streamix.test (no plan).
First things to configure
| Where (admin) | What |
|---|---|
| Settings → Add-ons → Storage | Bucket for artwork, video and subtitles (required before any upload) |
| Settings → Add-ons → Payments | At least one gateway, or members cannot subscribe |
| Billing → Subscriptions → Plans | Plan names, prices, billing period, trial days and feature bullets |
| Settings → Streaming | Profiles per account, stream-limit enforcement, autoplay defaults, allowed countries |
| Theme Options / Apps → App Branding | Name, logo, colours |
| Content → Landing page | Hero copy and "more reasons to join" cards |
| Catalogue → Titles | Your films and series |
Scheduled jobs
Point a scheduler at /api/v1/cron about once an hour with Authorization: Bearer <CRON_SECRET>. It builds the daily Top 10, sends "Remind me" and lifecycle notifications, rebuilds recommendations and moves unpaid memberships on hold. vercel.json already declares an hourly cron for Vercel.
Video conversion (optional)
Uploaded MP4s play as they are. To get adaptive HLS and seek-bar thumbnails, run the transcode worker on a server or container (not serverless):
npm run worker:transcode
Where to go next
- Installation Guide: environment variables and wizard details
- Deployment Guide: production build, cron, worker
- Admin Guide: running the service day to day
- Developer Guide: code conventions and extending the product
© CreativeCape Solutions · creative-cape.com · support@creative-cape.com