Skip to content

This is a simple API Gateway from scratch that performs authorization of a request, parses its headers, and forwards the request to the relevant service.

Notifications You must be signed in to change notification settings

Charispinto/api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic API Gateway

A simple API Gateway built from scratch that:

  • Performs authorization on incoming requests
  • Parses request headers
  • Forwards requests to the appropriate service based on endpoint matching

How to Run

From the project root directory, start each service:

node server.js
node services/users/server.js
node services/products/server.js

How to Test

Use the following curl command to test the /users endpoint:

curl -H "basic_auth: my-secret-token-123" http://localhost:3000/users

Note: This project is still a work in progress and intended for development use only.

About

This is a simple API Gateway from scratch that performs authorization of a request, parses its headers, and forwards the request to the relevant service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published