PeopleInSpace GraphQL Server

GraphQL backend allowing querying list of people in space and subscribing to position of International Space Station.

Run Locally:

  1. Start the local server: ./gradlew bootRun
  2. Open: localhost:8080/playground

Run on Google Cloud Run (with the command line):

  1. Install & setup gcloud

  2. Enable the Container, Container Registry, Cloud Build, and Cloud Run APIs:

    gcloud services enable
  3. Build the container image on Cloud Build using Buildpacks, storing the image on Google Container Registry:

    gcloud builds submit$PROJECT_ID/peopleinspace-graphql
  4. Deploy on Google Cloud Run:

    gcloud run deploy \$PROJECT_ID/peopleinspace-graphql \
      --platform=managed \
      --allow-unauthenticated \
      --project=$PROJECT_ID \
      --region=us-central1 \
      --memory=1Gi \

Local Docker Build & Run

  1. Install Docker

  2. Build the image

    ./gradlew bootBuildImage --imageName=peopleinspace-graphql
  3. Run image:

    docker run -p8080:8080 peopleinspace-graphql
  4. Open: localhost:8080/playground


View Github