API in Graphql using graphql-yoga that receives lat,lng coordinates and returns the location of the coordinate, address info and a list of open gas stations nearby.
This is a graphql implementation of this code: https://github.com/acaua/findgas-server
- Clone repository
git clone https://github.com/acaua/findgas-graphql.git
- cd into server folder
cd findgas-grapql
- Install dependencias
npm install
- Start server in development mode
npm run server
-
Check if it is up and play with graphql playground by acessing http://localhost:4000/
"All work and no play makes Jack a dull boy"
-
Start server
npm start
- Deploy to now https://zeit.co/now
now
- Enjoy! 😎