This project was created with Better-T-Stack, a modern TypeScript stack that combines React Native, Expo, Hono, and more.
- TypeScript - For type safety and improved developer experience
- React Native - Build mobile apps using React
- Expo - Tools for React Native development
- TailwindCSS - Utility-first CSS for rapid UI development
- Hono - Lightweight, performant server framework
- workers - Runtime environment
- Drizzle - TypeScript-first ORM
- Cloudflare D1 - Database engine
- Authentication - Better-Auth
- Turborepo - Optimized monorepo build system
First, install the dependencies:
bun installThis project uses Cloudflare D1 (SQLite) with Drizzle ORM.
Runtime database access uses the Cloudflare DB binding from packages/infra/alchemy.run.ts. If a local DATABASE_URL is present, it is only for database tooling.
Alchemy provisions the D1 database and applies migrations during dev and deploy.
- Generate migration files:
bun run db:generateThen, run the development server:
bun run devUse the Expo Go app to run the mobile application. The API is running at http://localhost:3000.
- Target: server
- Dev: bun run dev
- Deploy: bun run deploy
- Destroy: bun run destroy
For more details, see the guide on Deploying to Cloudflare with Alchemy.
calorie-ai-app/
├── apps/
│ ├── native/ # Mobile application (React Native, Expo)
│ └── server/ # Backend API (Hono)
├── packages/
│ ├── auth/ # Authentication configuration & logic
│ └── db/ # Database schema & queries
bun run dev: Start all applications in development modebun run build: Build all applicationsbun run dev:server: Start only the serverbun run check-types: Check TypeScript types across all appsbun run dev:native: Start the React Native/Expo development serverbun run db:generate: Generate database client/types