cloudflare-graphql-typescript
v0.0.2
Published
![GitHub Actions](https://github.com/jeremynguyencs/cloudflare-graphql-typescript/actions/workflows/main.yml/badge.svg)
Downloads
7
Readme
cloudflare-graphql-typescript
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