is-my-env-alive
v1.1.3
Published
A package thats help you to check if your environment projects is alive!
Readme
Is my environment alive?
:star: Star us on GitHub — it helps!
is-my-env-alive é um simples projeto que te ajuda a verificar - de maneira facil e rapida - se todas as suas APIs ou Frontends estão on-line!
Table of content
Installation
Install the package
npm i -g is-my-env-aliveCreate a JSOn file to define your projects
touch projects.json
vi projects.jsonInsira seus ambientes e projetos
{
"stage": {
"products-api": {
"url": "https://stage.my-awesome-api/products/search?limit=1",
"status": 200
},
"categories-api": {
"url": "https://stage.my-awesome-api/categories/search?limit=1",
"status": 200
}
},
"develop": {
"products-api": {
"url": "https://develop.my-awesome-api/products/search?limit=1",
"status": 200
},
"categories-api": {
"url": "https://develop.my-awesome-api/categories/search?limit=1",
"status": 200
}
}
}Usage
is-my-env-alive -e stage -f projects.jsonJSON Structure
url
Rota que sera apontada na requisicao para validar se a API esta on-line ou nao
status
Status esperado da url para definir que a API esta on-line
License
The is-my-env-alive extension is licensed under the terms of the GPL Open Source license and is available for free.
