/Api_Gateway

API Gatway for User Service API and Comment Service API [https://documenter.getpostman.com/view/7775892/UzQvsjmM]

Primary LanguageJavaScript

Api_Gateway

The API Gateway is a reverse proxy acting as entry point for the microservices architecture.

Some responsabilities of API gateways are:

  • routing requests
  • combine multiple APIs
  • expose customized APIs

Getting Started

To obtain a copy of this app download or clone the repository at this url

Prerequisites

You must have

  • NodeJs Installed
  • A browser Installed
  • An Internet connection to download the dependencies.

Installing locally

  • (If the repository wasn't cloned)Extract the contents of the downloaded zip file into any suitable location on the computer
  • In the command prompt, cd to the root of the directory you extracted the app into
  • Run 'npm install' to install all dependencies
  • Run 'npm run start' to start the application
  • In a browser address bar navigate to 'http://localhost:8080'
  • Clone the user_service and the comment_service
  • Make sure to start the server for both services
  • In a browser address bar navigate to 'http://localhost:8080/user' and 'http://localhost:8080/comment'

Microservice Architecture Image

microservice-architecture drawio

Built With

  • NodeJs
  • Express
  • Deployed to Heroku

Author

  • AbonyiXavier