- 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_TOKENwith this value - Create a GitHub Secret called
CLOUDFLARE_ACCOUNT_IDwith 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 devcd backend
yarn
yarn testProduces a backend/dist/ containing assets to be deployed
cd backend
yarn
yarn buildSingle 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 startcd backend
yarn
yarn testProduces a frontend/dist/ containing assets to be deployed
cd shared
yarn
yarn build
cd ../frontend
yarn
yarn build