Skip to content

telkomdev/kong-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kong API Gateway example

Just proof of concept using Kong (with Postgres, you can use Apache Cassandra) and NodeJs

Getting started

Important note

From official github of Kong there is one issue Kong/kong#5324, so we can't use kong's latest docker image. So we will use kong:1.3.0-alpine docker image.

Create kong network

$ ./script/create_kong_network

Start postgres

$ ./script/start_postgres

Migrate kong database

$ ./script/migration_bootstrap
$ ./script/migration_up

Migrate kong admin database

$ ./script/prepare_konga

Start kong api gateway

$ ./script/start_kong

Start kong admin

$ ./script/start_konga

Open kong admin UI http://localhost:1337/

Prepare Microservices example

There are two microservices example for this demo, employee-service and product-service. It is just simple microservice written in Nodejs. So we have to build each this microservice into Docker image.

Build employee-service

$ cd employee-service
$ make build

Run

$ make run-docker

Build product-service

$ cd product-service
$ make build

Run

$ make run-docker

About

Just proof of concept using Kong API Gateway

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published