Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/create-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ cd my-app
### 2. Create Cloudflare resources (if skipped)

```bash
wrangler d1 create my-app-db --binding DB
wrangler d1 create my-app-db
# Copy the database_id to wrangler.toml

wrangler r2 bucket create my-app-media --binding MEDIA_BUCKET
wrangler r2 bucket create my-app-media
```

### 3. Run database migrations
Expand Down Expand Up @@ -172,7 +172,7 @@ If you create resources during setup, a D1 database is automatically created and

**Manual creation:**
```bash
wrangler d1 create my-app-db --binding DB
wrangler d1 create my-app-db
```

### R2 Bucket
Expand All @@ -181,7 +181,7 @@ For media storage, an R2 bucket is created.

**Manual creation:**
```bash
wrangler r2 bucket create my-app-media --binding MEDIA_BUCKET
wrangler r2 bucket create my-app-media
```

## Troubleshooting
Expand Down Expand Up @@ -288,4 +288,4 @@ MIT © SonicJS Team

---

**Built with ❤️ for developers** | v2.0.0-alpha.1
**Built with ❤️ for developers** | v2.0.0-alpha.1
6 changes: 3 additions & 3 deletions packages/create-app/templates/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ A modern headless CMS built with [SonicJS](https://sonicjs.com) on Cloudflare's

2. **Create your D1 database:**
```bash
npx wrangler d1 create my-sonicjs-db --binding DB
npx wrangler d1 create my-sonicjs-db
```

Copy the `database_id` from the output and update it in `wrangler.toml`.

3. **Create your R2 bucket:**
```bash
npx wrangler r2 bucket create my-sonicjs-media --binding MEDIA_BUCKET
npx wrangler r2 bucket create my-sonicjs-media
```

4. **Run migrations:**
Expand Down Expand Up @@ -127,4 +127,4 @@ Your collections are automatically available via REST API:

## License

MIT
MIT
2 changes: 1 addition & 1 deletion packages/create-app/templates/starter/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ workers_dev = true
[[d1_databases]]
binding = "DB"
database_name = "my-sonicjs-db"
database_id = "YOUR_DATABASE_ID"
database_id = "YOUR_DATABASE_ID" # Run: wrangler d1 create my-sonicjs-db
migrations_dir = "./node_modules/@sonicjs-cms/core/migrations"

# R2 Bucket for media storage
Expand Down
Loading