This project is published in
URL Base: https://ibgefunctions.netlify.app/.netlify
To clone and run this application, you'll need Git, Node.js v10.16 or higher + [Yarn v1.13][yarn] or higher installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/leoguilen/serveless_functions_ibge.git
# Install dependencies
$ npm install
# Run the app
$ npm start
You can test in browser using url http://localhost:9000. Routes to functions:
// http://localhost:9000/estados
[
{...},
{
"id": 35,
"sigla": "SP",
"nome": "São Paulo",
"regiao": {
"id": 3,
"sigla": "SE",
"nome": "Sudeste"
}
}
]
/functions/cidades?uf={uf do estado} - Return all cities in specific state
// http://localhost:9000/cidades?uf=SP
[
{...},
{
"nome": "Adamantina"
},
]
Made with ♥ by Leonardo Guilen 👋 Get in touch!