This guide provides the essential steps to set up and start developing the project.
- Platform: Bun, Neon, Better Auth, Pulumi
- Backend: ElysiaJS, Drizzle ORM
- Frontend: React, Next.js, TanStack, react-use, Chakra UI
- Utilities: Lodash, date-fns, Type-Fest, TypeScript
brew install oven-sh/bun/bunbun bootstrap- Development:
cp .env.example .env- Testing:
cp .env.example .env.test- Create a database at Neon Console.
- Edit
.envand set theDATABASEvariable with your Neon connection string. - Apply migrations:
bun run --filter "@1st/database" db:migrate - Seed database (optional):
bun run --filter "@1st/database" db:seed - Reset database (optional):
bun run --filter "@1st/database" db:reset
Start all apps in dev mode:
bun run --filter='./apps/*' devStart api in dev mode:
bun run --filter "@1st/api" devStart web in dev mode:
bun run --filter "@1st/web" dev- Build all apps
bun run --filter='./apps/*' build- Start all apps in
prodmode:
bun run --filter='./apps/*' start- Start
apiinprodmode:
bun run --filter "@1st/api" start- Build
web
bun run --filter "@1st/web" build- Start
webinprodmode:
bun run --filter "@1st/web" start