3. Follow-along: Project setup
1m

First, we need to set up our . Follow the instructions below to get started.

You will:

  • create a in Studio
  • configure a GitHub repository using the template
  • clone the repository locally

Create a graph in Studio

  1. In the Studio organization, click on the Add graph button.

  2. Give the a name. Append your own name or initials to the end to make it unique.

  3. Leave the defaults as-is, keeping the architecture as Supergraph, then click Add graph.

  4. Take note of your 's ID.

Task!

Configure GitHub repository

  1. Go to the workshop's project repository and click Use this template.

  2. Make sure the Owner is set to your own personal GitHub account.

  3. Give it a name, we'll use apollo-operator-demo.

  4. Set the visibility to Public.

  5. Click Create repository.

  6. Go to Settings -> Actions -> General.

  7. Scroll down to Workflow Permissions and enable "Read and write permissions" under .

  8. Enable "Allow GitHub Actions to create and approve pull requests".

  9. Click Save.

Run GitHub Actions

  1. In GitHub, navigate to the Actions tab.

  2. Select the Setup Repository workflow.

  3. Click Run workflow, then enter the ID you chose in Studio, followed by @current.

  4. Click Run workflow. After the workflow finishes, you should see a PR in the repository.

Run GitHub Actions

Merge PR

  1. Navigate to Pull Requests.

  2. Check the open PR.

  3. Merge the PR. This triggers a build.

After a few moments, you should see the reviews package released in your repo homepage under the Packages section.

Task!

Clone repo locally

Clone your repository to your local machine.

git clone https://github.com/<YOUR_GITHUB_USERNAME>/apollo-operator-demo.git
Task!
Previous