Skip to content

jhumbug/graphql-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Template

Template repository for GraphQL services using Apollo.

Requirements

Getting Started

Environment variables

Key Description Default Required
GRAPHQL_PATH The pathname to serve GraphQL requests "/graphql"
LOG_FORMAT The morgan log format "combined"
PORT The application port 4000
REDIS_HOST The Redis cache hostname
REDIS_PORT The Redis cache port 6379

Codegen

Run yarn generate to generate TypeScript definitions for GraphQL resolvers with GraphQL Code Generator.

In Visual Studio Code, codegen can be run as a background task by executing Tasks: Run Task and selecting npm: generate.

Testing

Run yarn test to run Jest tests.

Infrastructure

Terraform configurations are located in the .iac directory.

CI/CD

Continuous integration and deployment workflows are run via GitHub Actions. See .github/workflows for workflow configurations.

CI

  • Runs build and test on all branches

Create release

  • Runs build, test, and deploy on version tags (v*).
  • Deploys to dev on every prerelease tag (v1.2.4-pre.0, v2.0.0-rc.5)
  • Deploys to dev, staging, and prod on every release tag (v3.4.5)

About

Starter app for a graphql apollo server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published