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
Before you begin, make sure you have the following installed:
8
+
9
+
-**Bun** (v1.3 or later) - [Install Bun](https://bun.sh/docs/installation)
10
+
-**Node.js** (v22 or later) - Required for some tooling, though Bun handles most of it
11
+
12
+
_Note: Earlier versions may work but have not been tested_
13
+
14
+
## Installation
15
+
16
+
To create a new Thunder App project, run:
17
+
18
+
```bash
19
+
bun create thunder-app@latest
20
+
```
21
+
22
+
The CLI will guide you through the setup process and ask you a few questions about your project configuration.
23
+
24
+

25
+
26
+
Once the project is created, navigate into your new project directory:
27
+
28
+
```bash
29
+
cd<your-app-name>
30
+
```
31
+
32
+
### Environment Variables
33
+
34
+
Copy the example environment files for both `frontend` and `backend` and fill in your values. You can see which variables are required by trying to spin up the app.
35
+
36
+
The backend will show invalid environment variables in the terminal:
37
+
38
+

39
+
40
+
And the frontend will show invalid environment variables in the browser console:
41
+
42
+

43
+
44
+
### Database Setup
45
+
46
+
Thunder App uses Drizzle ORM with PostgreSQL. To set up your database:
47
+
48
+
1. Make sure PostgreSQL is running
49
+
2. Update your database connection string in `backend/.env`
50
+
3. Run the database migrations:
51
+
52
+
```bash
53
+
bun run db:push
54
+
```
55
+
56
+
## Running the Development Server
57
+
58
+
Start all development environments simultaneously by running this command from the root of the monorepo:
59
+
60
+
```bash
61
+
bun run dev
62
+
```
63
+
64
+
This will start:
65
+
66
+
- Frontend dev server (defaults to `http://localhost:5173`)
67
+
- Lib (watches for file changes)
68
+
- Backend API server (defaults to `http://localhost:3000`)
69
+
70
+
All services support hot module replacement, so your changes will be reflected immediately.
71
+
72
+
## Next Steps
73
+
74
+
Now that you're up and running, here are some recommended next steps:
75
+
76
+
1.**Explore the Project Structure** - Check out the [Project Structure](/project-structure) guide to understand how everything is organized
77
+
2.**Set Up Authentication** - Configure Auth.js for user authentication
78
+
3.**Read the First Steps Guide** - Head over to [First Steps](/first-steps) for a walkthrough of common tasks
0 commit comments