Start from Template
We highly recommend starting from the template to ensure that everything is configured properly for Cloudflare. There are lots of gotchas that have been solved in the template.
-
Create a new project
Terminal window every app create -
Name your project
Note: this is also what the resources will be called in your Cloudflare account.
-
Navigate to your project
Terminal window cd your-project-name -
Install dependencies
Terminal window pnpm install -
Start the development server
Terminal window pnpm run dev -
Navigate to Every App Gateway
Go to the Every App Gateway in your browser.
-
Click “Add App”
-
Configure your app
- Assign a name and description
- The App URL should be whatever port your dev server is running on (e.g.
http://localhost:3001)
-
Test your app
Click on your newly created app and you should see a simple todo app template!
What’s in the Template?
The template includes:
- TanStack Start configured for Cloudflare Workers
- Drizzle ORM with D1 database setup
- Embedded SDK for Gateway authentication
- Example todo CRUD to show patterns for server functions
- TanStack DB setup for optimistic mutations
Next Steps
- Development Workflow - Learn the day-to-day commands
- Deployment - Deploy to production
- Tech Stack - Understand the technologies