StoneMoe / LiveNow

Setup your own livestream platform in seconds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

Create your very own serverless livestream platform within seconds and on a limited budget using Cloudflare services.

  • Cloudflare Stream
  • Cloudflare Turnstile
  • Cloudflare Pages
  • Cloudflare Worker

Init

Install packages

npm i  # toolchain
npm run i  # install dependency

Create API config from template

cp api/wrangler.toml.tpl api/wrangler.toml
vim api/wrangler.toml  # modify "vars" section

Locally

npm run api-create-localdb
npm run dev

Production

Create production database

npx wrangler d1 create livenow  # this will give a new "database_id", use the value to update api/wrangler.toml
npx wrangler d1 execute livenow --file=./api/sql/schema.sql

Deploy code

npm run publish

Misc

Admin user

First registered account will be assigned as admin automatically.

About

Setup your own livestream platform in seconds.


Languages

Language:TypeScript 65.5%Language:Vue 27.8%Language:CSS 3.9%Language:Smarty 1.3%Language:HTML 0.9%Language:JavaScript 0.7%