Follow these steps to get your own instance of the Waitlist Monorepo running locally and in production.
- Bun: This project uses Bun for package management and script execution. Install Bun.
- Cloudflare Account: Required for D1 Database and Worker/Pages deployment.
- Wrangler: Installed as a dev dependency, but ensure you are logged in:
bunx wrangler login
git clone <your-repo-url>
cd waitlist
bun installNavigate to the API app and initialize your local database:
cd apps/api
# Generate migrations
bun run db:generate
# Push to local D1 instance
bun run db:pushCreate .env files for both applications:
apps/api/.env:
WAITLIST_WEB_URL=http://localhost:3000
# Add your email service credentials if using oneapps/web/.env:
NEXT_PUBLIC_API_URL=http://localhost:8787From the root directory:
bun dev- Frontend: http://localhost:3000
- API: http://localhost:8787
cd apps/api
bun run deploycd apps/web
bun run deployWe use Biome for consistent code quality across the monorepo:
bun run format