Skip to content

carlo-808/apollo-nr-test-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apollo New Relic Test App

This app adds a GraphQL interface to the NASA Near Earth Objects API.

You can create a local .env file with these variable values:

  • NEW_RELIC_HOST
  • NEW_RELIC_LICENSE_KEY
  • NEW_RELIC_INFINITE_TRACING_TRACE_OBSERVER_HOST
  • NASA_API_KEY

More info on the .env format here.

You can generate a NASA_API_KEY here

OR

use DEMO_KEY as the NASA_API_KEY value which limits the number of calls you can make.

run: docker-compose up at the root dir and the apollo server will be accessible at http://locahost:4000

example query:

query GetRoids {
  asteroids(date: "2020-08-12") {
    id,
    name,
    miss_distance_km,
    close_approach_date,
    relative_velocity_km_per_hour,
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published