#ReverseProxy
Inspired by: https://memz.co/api-gateway-microservices-docker-node-js/
Standalone Reverse Proxy Server with support for multiple routes using http-proxy. Define routes from multiple services in a configuration file and access them from a single endpoint.
#Install Node Modules from package.json
npm i
#Start Server
npm start or pm2 start ReverseProxy
Define routes in a config.js
file using the following format:
module.exports = routes = {
'user': {
apiRoute: '/api/user',
upstreamUrl: '127.0.0.1:3000'
},
'books': {
apiRoute: '/api/books',
upstreamUrl: '127.0.0.1:3001'
}
}