Skip to content

vgirbes/eur-converter-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eur-graphql-node

Project made to test GraphQL with Node.

This project converts EURs to any other currency through the Yahoo and Fixer API.

Prerequisites

  1. Docker
  2. Docker-compose >= 3.6

First steps

$ docker-compose up -d

Go to http://localhost:8081/graphql and feel free to test the online EUR currency converter.

Expected query:

{
  yahoo(amount: 10.20, to: "USD") {
    converted, rate
  }
}
{
  fixer(amount: 10.20, to: "USD") {
    converted, rate
  }
}

Expected response:

{
  "data": {
    "yahoo": {
      "converted": 11.800379999999999,
      "rate": 1.1569
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published