A full-stack system built with Next.js on Vercel (frontend) and Hono on Cloudflare Workers (backend).
cd backend
npm install
cd frontend
npm install# Backend: Create .dev.vars and add JWT_SECRET
echo 'JWT_SECRET=your_secret_here' > backend/.dev.vars
# Frontend: Create .env.local and add the API base URL
echo 'NEXT_PUBLIC_API_BASE_URL=http://localhost:8787' > frontend/.env.localcd backend
npx wrangler d1 migrations apply bma-db --localThis will set up the database with test users:
- User:
[email protected]/ password:test - Admin:
[email protected]/ password:test
Note: These are also available in the live environment
# Start backend
cd backend
npm run dev # Runs on http://localhost:8787 (API Docs available on http://localhost:8787/docs)
# Start frontend
cd frontend
npm run dev # Runs on http://localhost:3000