A GraphQL server wrapping IBGE API.
IBGE API provides endpoints to fetch cities given a state ID. This server acts as a GraphQL gateway to filter the API response and avoid overfetching.
Response schemas are defined in schemas/schema.graphql
for just two endpoints described in the documentation.
Set the port you want the server to run on .env
and then just install dependencies using npm
or yarn
:
npm install
yarn install
To run the server use the start
script defined in package.json
:
npm run start
or
yarn start