This project convert the RESTful API from Earthquake to a GraphQL API.
- Node.js (version >= 10.0)
- npm or yarn as package manager
run your local machine to install depnedencies
$ npm install # or yarn
after depnedencies installed, run
$ npm run dev # or yarn dev
Connect to your GraphQL client to localhost:4000
as endpoint.
Look query API here
install pm2 to monitor node process
$ npm install -g pm2
start node application via pm2
$ pm2 index.js --name "graphql-api"
$ npm test # or yarn test