GithubHelp home page GithubHelp logo

einselbst / cloud-starter-turbo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wundergraph/cloud-starter-turbo

1.0 0.0 0.0 766 KB

JavaScript 20.59% TypeScript 53.18% HTML 10.53% Svelte 15.70%

cloud-starter-turbo's Introduction

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.

cloud-starter-turbo's People

Contributors

einselbst avatar ggeijteman-wg avatar starptech avatar yuribuerov avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.