Skip to content

ioak-io/ioak-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOAK Gateway

This is a microservice gateway

Prerequisites

  • Docker
  • Docker Compose

Getting Started

  1. Build and run the gateway and services:

    docker-compose up -d
  2. Access the services through the gateway:

    • Express.js service:

      curl http://localhost:8000/express
  3. Access the Kong Admin API:

    curl http://localhost:8001

Configuration

The gateway is configured using the kong.yml file. This file defines the services and routes.

  • Services: A service is a backend API that the gateway will proxy requests to.
  • Routes: A route defines how requests are sent to a service.

Deployment

To deploy the gateway to a cloud VM, you can build the Docker image and run it on the VM.

  1. Build the Docker image:

    docker build -t ioak-gateway .
  2. Run the Docker image on the VM:

    docker run -d --name ioak-gateway -p 8000:8000 -p 8443:8443 -p 8001:8001 -p 8444:8444 ioak-gateway

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published