A template for kick starting a Cloudflare Workers project to deploy Apollo Server v4.
Live demo: https://worker-apollo-server.phelab.workers.dev
- @as-integrations/cloudflare-workers integrated
- @apollo/datasource-rest integrated
- GraphQL Codegen integrated
- ESModule syntax + TypeScript
- Auto-deploy to Cloudflare Workers with GitHub Actions
- Auto-update dependencies with RenovateBot
- Click on the button
Use this template
- Install npm dependencies:
npm install
- Start app in the dev mode:
npm run dev
- If you edit the GraphQL schema in
src/schema.ts
file, you must re-generate the type definitions with the following command:
npm run generate
- Run tests:
npm run test