https://github.com/telkomdev/kong-demo
Just proof of concept using Kong API Gateway
https://github.com/telkomdev/kong-demo
kong kong-gateway
Last synced: 4 months ago
JSON representation
Just proof of concept using Kong API Gateway
- Host: GitHub
- URL: https://github.com/telkomdev/kong-demo
- Owner: telkomdev
- Created: 2019-12-29T02:42:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T18:41:48.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T15:54:52.554Z (6 months ago)
- Topics: kong, kong-gateway
- Language: JavaScript
- Size: 44.9 KB
- Stars: 23
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 https://github.com/Kong/kong/issues/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`
```shell
$ ./script/create_kong_network
```Start `postgres`
```shell
$ ./script/start_postgres
```Migrate `kong database`
```shell
$ ./script/migration_bootstrap
$ ./script/migration_up
```Migrate `kong admin database`
```shell
$ ./script/prepare_konga
```Start `kong api gateway`
```shell
$ ./script/start_kong
```Start `kong admin`
```shell
$ ./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`
```shell
$ cd employee-service
$ make build
```Run
```shell
$ make run-docker
```Build `product-service`
```shell
$ cd product-service
$ make build
```Run
```shell
$ make run-docker
```