You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ This starter kit uses a thoughtfully organized monorepo structure that promotes
32
32
-[`apps/app/`](./apps/app) — React 19 application with TanStack Router, Jotai, and Tailwind CSS v4
33
33
-[`apps/web/`](./apps/web) — Astro marketing website for static site generation
34
34
-[`apps/api/`](./apps/api) — tRPC API server powered by Hono framework for Cloudflare Workers
35
+
-[`apps/email/`](./apps/email) — React Email templates for authentication and transactional emails
35
36
-[`packages/core/`](./packages/core) — Shared TypeScript types and utilities
36
37
-[`packages/ui/`](./packages/ui) — Shared UI components with shadcn/ui management utilities
37
38
-[`packages/ws-protocol/`](./packages/ws-protocol) — WebSocket protocol template with type-safe messaging
@@ -112,7 +113,7 @@ bun install
112
113
113
114
### 3. Configure Environment
114
115
115
-
Update environment variables in [`.env`](./.env) and `.env.local` files as well as Wrangler configuration in [`wrangler.jsonc`](./apps/edge/wrangler.jsonc).
116
+
Update environment variables in [`.env`](./.env) and `.env.local` files as well as Wrangler configuration in [`wrangler.jsonc`](./apps/api/wrangler.jsonc).
116
117
117
118
### 4. Start Development
118
119
@@ -124,11 +125,10 @@ Open two terminals and run these commands:
124
125
bun --filter @repo/app dev
125
126
```
126
127
127
-
**Terminal 2 - Backend:**
128
+
**Terminal 2 - API Server:**
128
129
129
130
```bash
130
-
bun --filter @repo/edge build --watch
131
-
bun wrangler dev
131
+
bun --filter @repo/api dev
132
132
```
133
133
134
134
For the marketing website:
@@ -162,13 +162,15 @@ bun wrangler secret put OPENAI_API_KEY --env=production
162
162
### 2. Build and Deploy
163
163
164
164
```bash
165
-
# Build all packages
166
-
bun --filter @repo/app build
167
-
bun --filter @repo/web build
168
-
bun --filter @repo/edge build
169
-
170
-
# Deploy to Cloudflare Workers
171
-
bun wrangler deploy --env=production
165
+
# Build packages that require compilation (order matters!)
166
+
bun email:build # Build email templates first
167
+
bun web:build # Build marketing site
168
+
bun app:build # Build main React app
169
+
170
+
# Deploy all applications
171
+
bun web:deploy # Deploy marketing site
172
+
bun api:deploy # Deploy API server
173
+
bun app:deploy # Deploy main React app
172
174
```
173
175
174
176
Your application will be live on your Cloudflare Workers domain within seconds. The edge-first architecture ensures optimal performance regardless of user location.
0 commit comments