Monorepo สำหรับโปรเจ็ค FireflyBridge จัดการด้วย pnpm workspaces
- apps/frontend: Web Application (Next.js)
- apps/backend: Backend Service (TypeScript)
-
ติดตั้ง Dependencies:
pnpm install
-
รันโปรเจ็ค (Development):
- รัน Frontend:
pnpm dev:frontend - รัน Backend:
pnpm dev:backend
- รัน Frontend:
-
Push โค้ดขึ้น GitHub:
git init git add . git commit -m "Initial commit" git remote add origin <your-repo-url> git push -u origin main
-
Deploy ผ่าน Vercel Dashboard:
- ไปที่ vercel.com
- เลือก "Import Project"
- เชื่อมต่อ GitHub repository
- Vercel จะ detect Next.js และ Elysia อัตโนมัติ
- คลิก "Deploy"
-
หรือใช้ Vercel CLI:
npm i -g vercel vercel
GET /api/hotlines- รายการเบอร์โทรฉุกเฉินGET /api/external-links- ลิงก์แพลตฟอร์มภายนอกGET /api/shelters- ข้อมูลศูนย์พักพิง