Skip to content

Satont/livestreamx

Repository files navigation

Development

Requirements

Start

  • Run needed services (Postgres, Mediamtx, e.t.c)
docker compose -f docker-compose.dev.yml up -d
  • Install dependencies
cd apps/frontend
pnpm install --frozen-lockfile
cd apps/api
go mod download
  • cp .env.example .env and fill required envs

  • Run api

go run apps/api/cmd/main.go
  • Run frontend
cd apps/frontend
pnpm dev
  • Run stream (optional)
    • Go to OBS -> Settings -> Stream
    • Set server to rtmp://localhost
    • Copy stream key from Profile -> Stream from the site

Writing migrations

  • Create migration file
make create-migration name=<YOUR NAME HERE>
  • Go to migrations dir and edit your newly created migration