cloudflare-graphql-typescript
is a template for creating a GraphQL server with serverless Cloudflare workers, written in TypeScript. It uses the apollo-server-cloudflare library to create the server and the PokeAPI as a REST API source. It also uses Cloudflare KV to cache and store the data from requests.
A demo of the server is available here.
git clone https://github.com/jeremynguyencs/cloudflare-graphql-typescript.git
cd cloudflare-graphql-typescript
yarn
# Run the server locally
yarn dev
# Lint and format code
yarn lint
yarn format
# Dry run for deployment
yarn build
# Publish to Cloudflare workers
yarn publish