1.9.2 • Published 5 years ago

chappai v1.9.2

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

Chappai

Build Status Test Coverage

In a Micro-Service Architecture, you have to handle the proxying, the load, and at least failures. One of the mandatory component is a Gateway.

The main goal of a Gateway is to keep track of all services registered, to authorize or not a user to access requested services, and if needed, to render data to fit with clients needs.

With Chappai (pronounced "Cha-Pa-Eye") you can monitor services, register you APIs and define custom data renders.

The registry part is handled by another library called Yemma. Feel free to checkout this project documentation to know more about the registry.

Setup

  • In a classic nodeJS project, install the dependency.

    npm i --save chappai
  • In your main nodeJS file application (typically index.js) use it like so :

    const gateway = require('chappai');
    
    gateway
        .on(started, app => console.log(`Gateway listening on port ${app.settings.port}`))
        .start();
  • Setup your environment:

    export YEMMA_DB_URI=mongodb://localhost:27017/yemma
    export YEMMA_PORT=9000
    export PORT=6473
    # Mandatory(*) For Authentication part
    export AUTH_REALM=auth
    export AUTH_PATH=/api/v1/users/profile
    export AUTH_HEADER=authorization
    # Optional(*) For Access Control part
    export ACCESS_REALM=access
### Reference
[Chappai](https://en.wikipedia.org/wiki/Stargate_(device)) is the name of the stargate in the goa'uld language.
1.9.2

5 years ago

1.9.1

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.6

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago