https://github.com/kimyvgy/worker-apollo-server-template
Deploy Apollo Server v4 to Cloudflare Workers
https://github.com/kimyvgy/worker-apollo-server-template
apollo-server apollo-server-cloudfare cloudflare cloudflare-workers hacktoberfest template
Last synced: 12 months ago
JSON representation
Deploy Apollo Server v4 to Cloudflare Workers
- Host: GitHub
- URL: https://github.com/kimyvgy/worker-apollo-server-template
- Owner: kimyvgy
- License: mit
- Created: 2022-09-29T02:07:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-16T13:20:59.000Z (about 1 year ago)
- Last Synced: 2025-04-11T14:23:07.214Z (about 1 year ago)
- Topics: apollo-server, apollo-server-cloudfare, cloudflare, cloudflare-workers, hacktoberfest, template
- Language: TypeScript
- Homepage: https://worker-apollo-server.teguru.workers.dev
- Size: 529 KB
- Stars: 25
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 👷 `worker-apollo-server-template` Quick start
A template for kick starting a Cloudflare Workers project to deploy Apollo Server v4.
Live demo: https://worker-apollo-server.teguru.workers.dev
## Features
- [@as-integrations/cloudflare-workers](https://www.npmjs.com/package/@as-integrations/cloudflare-workers) integrated
- [@apollo/datasource-rest](https://www.npmjs.com/package/@apollo/datasource-rest) integrated
- [GraphQL Codegen](https://the-guild.dev/graphql/codegen) integrated
- [ESModule syntax](https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/) + TypeScript
- Auto-deploy to Cloudflare Workers with GitHub Actions
- Auto-update dependencies with RenovateBot
## Usage
- Click on the button `Use this template`
- Install npm dependencies:
```bash
npm install
```
- Start app in the dev mode:
```bash
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:
```bash
npm run generate
```
- Run tests:
```bash
npm run test
```