0.0.2 • Published 2 years ago

cloudflare-graphql-typescript v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

cloudflare-graphql-typescript

GitHub Actions

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.

Table of Contents

Installation

git clone https://github.com/jeremynguyencs/cloudflare-graphql-typescript.git

cd cloudflare-graphql-typescript

yarn

Usage

# Run the server locally
yarn dev

# Lint and format code
yarn lint
yarn format

Deployment

# Dry run for deployment
yarn build

# Publish to Cloudflare workers
yarn publish

License

MIT