-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
26 lines (26 loc) · 1.94 KB
/
package.json
File metadata and controls
26 lines (26 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "agora-conversational-ai-demo",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "bun run dev:check && concurrently -n backend,frontend -c blue,green \"bun run dev:backend\" \"bun run dev:frontend\"",
"dev:check": "bun run setup:env && bun run setup:deps",
"dev:backend": "cd server-python && bash -c '(test -d venv || python3 -m venv venv) && source venv/bin/activate && pip install -q -r requirements.txt && python src/server.py'",
"dev:frontend": "cd web-client && bun run dev",
"backend": "cd server-python && source venv/bin/activate && python3 src/server.py",
"frontend": "cd web-client && bun run dev",
"setup": "bun run setup:env && bun run setup:backend && bun run setup:frontend && bun run setup:done",
"setup:env": "test -f server-python/.env.local || (cp server-python/.env.example server-python/.env.local && echo '\n⚠️ Created server-python/.env.local - Please edit your Agora credentials.' && echo ' Required: APP_ID and APP_CERTIFICATE. Managed provider access must be enabled for this project.\n')",
"setup:deps": "test -d web-client/node_modules || (echo 'Installing frontend dependencies...' && cd web-client && bun install)",
"setup:backend": "cd server-python && python3 -m venv venv && source venv/bin/activate && pip install --upgrade pip && PIP_INDEX_URL=https://pypi.org/simple pip install -r requirements.txt",
"setup:frontend": "cd web-client && bun install",
"setup:done": "echo '\n✅ Setup complete! Next steps:' && echo ' 1. Edit server-python/.env.local with APP_ID and APP_CERTIFICATE' && echo ' 2. Run: bun run dev\n'",
"build": "cd web-client && bun run build",
"clean": "bun run clean:backend && bun run clean:frontend",
"clean:backend": "rm -rf server-python/venv server-python/__pycache__ server-python/src/__pycache__",
"clean:frontend": "rm -rf web-client/node_modules web-client/dist"
},
"devDependencies": {
"concurrently": "^8.2.2"
}
}