This project was created with Better-T-Stack, a modern TypeScript stack that combines Hono, TRPC, 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
- shadcn/ui - Reusable UI components
- Hono - Lightweight, performant server framework
- tRPC - End-to-end type-safe APIs
- workers - Runtime environment
- Drizzle - TypeScript-first ORM
- SQLite/Turso - Database engine
- Authentication - Better-Auth
- Oxlint - Oxlint + Oxfmt (linting & formatting)
First, install the dependencies:
pnpm installThis project uses SQLite with Drizzle ORM.
-
Start the local SQLite database (optional): D1 local development and migrations are handled automatically by Alchemy during dev and deploy.
-
Update your
.envfile in theapps/serverdirectory with the appropriate connection details if needed. -
Apply the schema to your database:
pnpm run db:pushThe native app requires EXPO_PUBLIC_SERVER_URL to connect to the API server.
- Local dev: Copy
.env.exampleto.env(already set tohttp://localhost:3000)cp apps/native/.env.example apps/native/.env
- EAS builds: The URL is set per build profile in
apps/native/eas.json:development—http://localhost:3000(dev client)preview— deployed Workers URL (internal testing)production— deployed Workers URL
Then, run the development server:
pnpm run devOpen http://localhost:3001 in your browser to see the web application. Use the Expo Go app to run the mobile application. The API is running at http://localhost:3000.
- Dev: cd apps/server && pnpm run dev
- Deploy: cd apps/server && pnpm run deploy
- Destroy: cd apps/server && pnpm run destroy
For more details, see the guide on Deploying to Cloudflare with Alchemy.
- Format and lint fix:
pnpm run check
ironlog/
├── apps/
│ ├── web/ # Frontend application ()
│ ├── native/ # Mobile application (React Native, Expo)
│ └── server/ # Backend API (Hono, TRPC)
├── packages/
│ ├── api/ # API layer / business logic
│ ├── auth/ # Authentication configuration & logic
│ └── db/ # Database schema & queries
pnpm run dev: Start all applications in development modepnpm run build: Build all applicationspnpm run dev:web: Start only the web applicationpnpm run dev:server: Start only the serverpnpm run check-types: Check TypeScript types across all appspnpm run dev:native: Start the React Native/Expo development serverpnpm run db:push: Push schema changes to databasepnpm run db:generate: Generate database client/typespnpm run check: Run Oxlint and Oxfmt