Skip to content

tingtt/hackbar-copilot

Repository files navigation

hackbar-copilot

Design Doc

Usage

mkdir .data
go run cmd/registry/main.go -d ./.data/

http://localhost:8080/playground

query {
  recipes {
    name
    imageURL
    recipes {
      name
      type {
        name
        description
      }
      glass {
        name
        description
      }
      steps {
        material
        amount
        description
      }
    }
  }
}
mutation saveRecipe($input: InputRecipeGroup!) {
  saveRecipe(input: $input) {
    name
    imageURL
    recipes {
      name
      type {
        name
        description
      }
      glass {
        name
        description
      }
      steps {
        material
        amount
        description
      }
    }
  }
}
{
  "input": {
    "name": "Phuket Sling",
    "recipes": [
      {
        "name": "Cocktail",
        "recipeType": {
          "name": "build"
        },
        "glassType": {
          "name": "collins"
        },
        "steps": [
          {
            "material": "Peach liqueur",
            "amount": "30ml"
          },
          {
            "material": "Blue curacao",
            "amount": "15ml"
          },
          {
            "material": "Grapefruit juice",
            "amount": "30ml"
          },
          {
            "material": "Tonic water",
            "amount": "Half up"
          },
          {
            "description": "Stir"
          },
          {
            "material": "Tonic water",
            "amount": "Full up"
          },
          {
            "description": "Stir (Lightly so as not to lose gas of soda.)"
          }
        ],
        "asMenu": {
          "price": 700
        }
      },
      {
        "name": "Mocktail",
        "recipeType": {
          "name": "build"
        },
        "glassType": {
          "name": "collins"
        },
        "steps": [
          {
            "material": "Peach syrup",
            "amount": "20ml"
          },
          {
            "material": "Blue curacao syrup",
            "amount": "10ml"
          },
          {
            "material": "Grapefruit juice",
            "amount": "30ml"
          },
          {
            "material": "Tonic water",
            "amount": "Half up"
          },
          {
            "description": "Stir"
          },
          {
            "material": "Tonic water",
            "amount": "Full up"
          },
          {
            "description": "Stir (Lightly so as not to lose gas of soda.)"
          }
        ],
        "asMenu": {
          "price": 700
        }
      }
    ],
    "asMenu": {
      "flavor": "Sweet"
    }
  }
}

About

HACK.BAR のレシピレジストリとクライアント

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages