A modern, production-ready template for building full-stack React applications using React Router - published to cloudflare
- 🚀 Server-side rendering
- 🗄️ Convex real-time database
- 🪟 ShadCN components
- 🔑 Authentication with Clerk
- ⚡️ Hot Module Replacement (HMR)
- 📦 Asset bundling and optimization
- 🔄 Data loading and mutations
- 🔒 TypeScript by default
- 🎉 TailwindCSS for styling
- 🔍 Biome for linting
- 📖 React Router docs
This is a template project representing a simple Todo app.
To convert it into your own app, use claude-code and run the /transform-to-app command (see .claude/commands/transform-to-app.md).
example:
/transform-to-app confirm worktracking-app
This will remove all the Todo-App specifics and renmae it to Worktracking-App.
-
First, copy
.env.exampleto.env -
To use the authentication setup, to go
https://clerk.comand create an accound. -
Then, within the Clerk dashboard, create an application,
Configure>API Keys>React RouterAnd copy:
- VITE_CLERK_PUBLISHABLE_KEY=pk_test_YOUR_KEY
- CLERK_SECRET_KEY=sk_test_YOUR_KEY
and add then to you
.env.
-
Then copy the
Frontend API URL(right hand side in the clerk dashboard) and attCLERK_JWT_ISSUER_DOMAIN=URLto.env -
Go to
JWT templates>Add new templateand selectConvex
For development, you can run convex locally.
- Run
bun run convex:dev - Create a new project
- create a
localdeployment - Convex will complain about a environment variable not being set - that's ok
- in a new shell/terminal, run
./setup_convex_env.sh- this will set the missing environment variable from.env
Now you're ready run roll!
Install the dependencies:
bun installStart the development server with HMR:
bun devYour application will be available at http://localhost:5173.
Check and lint:
bun checkPreview the production build locally:
bun run previewCreate a production build:
bun run buildDeployment is done using the Wrangler CLI.
To build and deploy directly to production:
bun run deployTo deploy a preview URL:
bunx wrangler versions uploadYou can then promote a version to production after verification or roll it out progressively.
bunx wrangler versions deployThis template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever CSS framework you prefer.
Built with ❤️ using React Router.