This "standard starter" is the recommended implementation for RedwoodSDK. You get a Typescript project with:
- Vite
- database (Prisma via D1)
- Session Management (via DurableObjects)
- Passkey authentication (Webauthn)
- Storage (via R2)
npx create-rwsdk my-project-name
cd my-project-name
pnpm installpnpm devPoint your browser to the URL displayed in the terminal (e.g. http://localhost:5173/). You should see a "Hello World" message in your browser.
Within your project's wrangler.jsonc:
-
Replace the
__change_me__placeholders with a name for your application -
Create a new D1 database:
npx wrangler d1 create my-project-dbCopy the database ID provided and paste it into your project's wrangler.jsonc file:
For authentication setup and configuration, including optional bot protection, see the Authentication Documentation.
{ "d1_databases": [ { "binding": "DB", "database_name": "my-project-db", "database_id": "your-database-id", }, ], }