- React Frontend deployed to Cloudflare Pages
- Backend deployed to Cloudflare Workers
- Shared module written in Typescript
- Debuggable using VS Code
- Testing for everything
- Live reloading for frontend and backend
- Environment variable and secret support
- Continuous Deployment via GitHub Actions
- Use template to create your own repository
- Sign up for Cloudflare
- Create an API Token
- Create a GitHub Secret called
CLOUDFLARE_API_TOKEN
with this value - Create a GitHub Secret called
CLOUDFLARE_ACCOUNT_ID
with your Cloudflare account id - Update the name of your application in wrangler.toml
Typescript backend deployed to Cloudflare Workers
Runs locally with live reloading
cd backend
yarn
yarn dev
cd backend
yarn
yarn test
Produces a backend/dist/
containing assets to be deployed
cd backend
yarn
yarn build
Single page application using React, deployed to Cloudflare Pages
Runs locally with live reloading
cd shared
yarn
yarn link
yarn start # required for live reloading of shared module
cd ../frontend
yarn
yarn link @app/shared # required for live reloading of shared module
yarn start
cd backend
yarn
yarn test
Produces a frontend/dist/
containing assets to be deployed
cd shared
yarn
yarn build
cd ../frontend
yarn
yarn build