Remix Cloudflare Template
A minimal Remix application starter with a home page and an auth page, configured for Cloudflare Workers deployment through the Cloudflare Vite plugin.
Starter Shape
app/controllers/home.tsxowns the home page.app/controllers/auth.tsxowns the auth page.app/routes.tsdefines the route contract.app/router.tswires routes to handlers.app/ui/holds the shared document and layout wrappers.app/utils/render.tsxcentralizes HTML response rendering.
Growing The App
- Start with flat route files and only introduce route folders when a route needs multiple actions or route-owned modules.
- Add directories like
app/data/,app/middleware/,public/, ortest/when the app actually needs them. - Move shared UI into
app/ui/once more than one route needs it.
Commands
npm i npm run dev npm run preview npm run deploy