This starter combines WunderGraph Cloud with Turborepo to create an optimized monorepo experience for your WunderGraph application.
npm install
npm run build
npm run dev
Fetch Germany (DE)
from your WunderGraph.
curl -X GET http://localhost:3000/operations/Countries?code=DE
- Fork this repo
- Sign in to WunderGraph Cloud
- Create a new project
- Import the forked repo
- 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 to the
main
branch, e.g. change the query inapps/api/operations/Countries.graphql
- 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.
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"]
}
Read the Docs.