# health-check-server
Services health check API

### Supported services
- AWS S3
- Postgres
- Redis
- SMTP
- MongoDB
- RabbitMQ

### Install
```bash
npm i -S @heathmont/health-check-server
```

#### Example and Dev
- Docker stack deploy
    ```bash
    docker stack deploy -c docker-compose.yml health_check_server_stack
    ```
- Start Example App
    ```bash
    npm run example
    ```
- Fetch service status info:
    ```bash
    # if not exists
    brew install httpie
  
    http -v :3000/health
    ```
- Docker stack remove
    ```bash
    docker stack rm health_check_server_stack
    ```

#### TODO:
- [ ] Add rate limiter in order to limit http requests to health endpoint
- [ ] Add ability to start health check server as a preloaded module (via node --require @@heathmont/health-check-server app.js)