Skip to content

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.

  1. Create a new project

    Terminal window
    every app create
  2. Name your project

    Note: this is also what the resources will be called in your Cloudflare account.

  3. Navigate to your project

    Terminal window
    cd your-project-name
  4. Install dependencies

    Terminal window
    pnpm install
  5. Start the development server

    Terminal window
    pnpm run dev
  6. Navigate to Every App Gateway

    Go to the Every App Gateway in your browser.

  7. Click “Add App”

  8. 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)
  9. 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