Skip to content

A simple API gateway which can be used along with microservices / apis in NodeJS

Notifications You must be signed in to change notification settings

jinujd/api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-gateway

A simple API gateway / reverse proxy, which can be used along with microservices / apis in NodeJS

Sample configuration in config.js

module.exports = {
	port:8081,
	routes:  [
		{
			path:"local-service",
			port:"3001"
		},
		{
			path:"remote-service-with-port", 
			server:"http://remotehost",
			port:"3002"
		},
		{
			path:"remote-service-without-port", 
			server:"http://remotehost"
		},
		{
			path:"custom-service", 
			remotePath:"138.23.44.2"
		}
	]

}

Send me a thank you mail if you are using this ;) Reach me @: [email protected]

About

A simple API gateway which can be used along with microservices / apis in NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published