Skip to content

yashma-sonara/API_Gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Gateway Project

Jia Xin and Yashma

Project Summary

This project is an API Gateway implementation that serves as a centralized entry point for accessing and managing multiple backend services. The API Gateway acts as a mediator between clients and the backend services, providing a unified interface and offering various features such as load balancing, request transformation, and service discovery.

USER GUIDE

To clone the repository, use this command on terminal:

git clone https://github.com/yashma-sonara/API_Gateway

To start Hertz Server

Navigate into Hertz_Demo folder

Run following command:

  • go run main.go

To start nacos server:

Follow Guide to Install nacos:

https://nacos.io/en-us/docs/quick-start.html

Navigate into nacos directory

  • cd distribution/target/nacos-server-[version]/nacos/bin OR
  • cd nacos/bin

Run the following command to start nacos:

  • Windows
    • startup.cmd -m standalone
  • Linux/Mac
    • sh startup.sh -m standalone

To register RPC servers:

  1. Open a new terminal
  2. Navigate to RPC_Server directory
  3. Run following command:
  • Windows:
    • bash build.sh
    • bash output/bootstrap.sh
  • Linux/Git Bash:
    • sh build.sh
    • sh output/bootstrap.sh

You can view nacos registered services on: http://localhost:8848/nacos

Send a HTTP request to the server

Open a new terminal

Run following command:


Languages and Tools:

go html5 react

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published