Express + TypeScript + MongoDB + api.video ā backend for web and mobile clients.
| Health | GET /api/health |
| Deploy target | Railway or Render (see PORTOKALIVE_INFRASTRUCTURE_MIGRATION_PLAN.md) |
| Org | PortokaLive |
cp .env.example .env
# Set MONGO_URI, SECRET_KEY, API_VIDEO_API_KEY, email vars
npm install
npm run build
npm startDev: npm run dev
| Method | Path | Auth |
|---|---|---|
| GET | /api/health |
ā |
| POST | /api/v1/user/register |
ā |
| POST | /api/v1/user/login |
ā |
| POST | /api/v1/user/activate |
ā |
| POST | /api/v1/user/validateToken |
JWT |
| GET | /api/v1/user/:email |
JWT |
Streaming via api.video (LiveService). Legacy SSE/FLV routes deprecated.
docker build -t portokalive-api .
docker run -p 5000:5000 --env-file .env portokalive-apiISC Ā· Kevin Moe Myint Myat