Skip to content

wundergraph/cloud-starter-turbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WunderGraph Cloud Starter + Turborepo

CI

This starter combines WunderGraph Cloud with Turborepo to create an optimized monorepo experience for your WunderGraph application.

Getting started locally

npm install
npm run build
npm run dev

Fetch Germany (DE) from your WunderGraph.

curl -X GET http://localhost:3000/operations/Countries?code=DE

Deploy to WunderGraph Cloud

  1. Fork this repo
  2. Sign in to WunderGraph Cloud
  3. Create a new project
  4. Import the forked repo
  5. Deploy the project

Try it out (replace YOUR_PROJECT_NAME with your project name):

curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/operations/Countries?code=DE

Make changes

  1. Make changes to the main branch, e.g. change the query in apps/api/operations/Countries.graphql
  2. Commit and push the changes

See your changes live in less than a minute. If you don't make changes that will affect the WunderGraph build, the build will be fetched from the cache.

Info

If you want to store your WunderGraph configuration in a separate directory e.g. .wundergraph don't forget to update the outputs property in your turbo.json file.

{
  "$schema": "https://turborepo.org/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": [
        "^build"
      ],
      "outputs": [
        //...
        ".wundergraph/generated/**"
      ]
    }
  },
  // Add more environment variables here that impact the WunderGraph build
  "globalEnv": ["NODE_ENV", "WG_ALLOWED_ORIGIN"]
}

Learn More

Read the Docs.

About

Use Turborepo to speed up builds in monorepos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •