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
Building modern web applications shouldn't require weeks of configuration hell. This React Starter Kit eliminates the tedious setup work so you can focus on what matters: shipping great products.
9
9
@@ -29,16 +29,17 @@ Be sure to join our [Discord channel](https://discord.gg/2nKEnKq) for assistance
29
29
30
30
This starter kit uses a thoughtfully organized monorepo structure that promotes code reuse and maintainability:
31
31
32
-
-[`apps/web/`](./apps/web) — React frontend with Vite, TanStack Router, and Tailwind CSS
32
+
-[`apps/app/`](./apps/app) — React 19 application with TanStack Router, Jotai, and Tailwind CSS v4
33
+
-[`apps/web/`](./apps/web) — Astro marketing website for static site generation
33
34
-[`apps/api/`](./apps/api) — tRPC API server powered by Hono framework
34
35
-[`apps/edge/`](./apps/edge) — Cloudflare Workers entry point for edge deployment
35
36
-[`packages/core/`](./packages/core) — Shared TypeScript types and utilities
37
+
-[`packages/ui/`](./packages/ui) — Shared UI components with shadcn/ui management utilities
36
38
-[`packages/ws-protocol/`](./packages/ws-protocol) — WebSocket protocol template with type-safe messaging
37
39
-[`db/`](./db) — Database schemas, migrations, and seed data
38
40
-[`docs/`](./docs) — VitePress documentation site
39
41
-[`infra/`](./infra) — Terraform infrastructure configurations for multi-environment deployment
40
42
-[`scripts/`](./scripts) — Build automation and development tools
41
-
-[`packages/ui/`](./packages/ui) — Shared UI components with ShadCN management utilities
42
43
43
44
**Why Monorepo?** This structure enables seamless code sharing between frontend and backend, ensures type consistency across your entire stack, and simplifies dependency management. When you update a type definition, both client and server stay in sync automatically.
44
45
@@ -59,26 +60,27 @@ This starter kit uses a thoughtfully organized monorepo structure that promotes
59
60
-[Bun](https://bun.sh/) — Lightning-fast JavaScript runtime and package manager
-[Vitest](https://vitest.dev/) — Blazing fast unit testing
@@ -117,10 +119,10 @@ Update environment variables in [`.env`](./.env) and `.env.local` files as well
117
119
118
120
Open two terminals and run these commands:
119
121
120
-
**Terminal 1 - Frontend:**
122
+
**Terminal 1 - Application (React):**
121
123
122
124
```bash
123
-
bun --filter @repo/web dev
125
+
bun --filter @repo/app dev
124
126
```
125
127
126
128
**Terminal 2 - Backend:**
@@ -130,6 +132,12 @@ bun --filter @repo/edge build --watch
130
132
bun wrangler dev
131
133
```
132
134
135
+
For the marketing website:
136
+
137
+
```bash
138
+
bun --filter @repo/web dev
139
+
```
140
+
133
141
### 5. Initialize Database
134
142
135
143
```bash
@@ -138,7 +146,7 @@ bun --filter @repo/db migrate
138
146
bun --filter @repo/db seed # Optional: add sample data
139
147
```
140
148
141
-
Open <http://localhost:5173> to see your app running. The backend API will be available at the port shown by `wrangler dev` (typically 8787).
149
+
Open <http://localhost:5173> to see your React app running. The marketing website runs on <http://localhost:4321>. The backend API will be available at the port shown by `wrangler dev` (typically 8787).
142
150
143
151
## Production Deployment
144
152
@@ -156,6 +164,7 @@ bun wrangler secret put OPENAI_API_KEY --env=production
156
164
157
165
```bash
158
166
# Build all packages
167
+
bun --filter @repo/app build
159
168
bun --filter @repo/web build
160
169
bun --filter @repo/edge build
161
170
@@ -167,7 +176,7 @@ Your application will be live on your Cloudflare Workers domain within seconds.
0 commit comments