A Node.js API Gateway for the masses!
npm install fast-gateway
A super fast, framework agnostic Node.js API Gateway for the masses â€ïž
Docker images: https://hub.docker.com/repository/docker/kyberneees/rproxy
> Since v2.3.0, AWS Lambda proxying integration is supported via http-lambda-proxy ð¥
> Since v3.1.0, WebSockets proxying is supported via faye-websocket ð¥
Read more online:
- A â.jsâ API Gateway for the masses: https://itnext.io/a-js-api-gateway-for-the-masses-a12fdb9e961c
js
npm i fast-gateway
`Usage
$3
`js
const gateway = require('fast-gateway')
const server = gateway({
routes: [{
prefix: '/service',
target: 'http://127.0.0.1:3000'
}]
})server.start(8080)
`
$3
`js
const service = require('restana')()
service.get('/get', (req, res) => res.send('Hello World!'))service.start(3000)
`
$3
`bash
curl -v http://127.0.0.1:8080/service/get
``