Kong is a scalable, open-source Management Layer for APIs and Microservices. Built on top of NGINX with focus on high performance and reliability.
We used to write custom code for each service. With Kong we write once, dispatch everywhere.
- Download: http://getkong.org/download
- Run
kong start
Note: Kong requires Cassandra 2.1.3
Visit getkong.org for the official Kong documentation.
Use Kong through the kong
CLI:
$ kong --help
Note If you installed Kong via one of the available methods, then kong
should already be in your $PATH
.
- Clone the repository and make it your working directory.
- Run
[sudo] make install
This will build and install the kong
luarock globally.
- Run
make dev
This will install development dependencies and create your environment configuration files:
kong_TESTS.yml
kong_DEVELOPMENT.yml
- Run the tests:
make test-all
-
Run Kong with the development configuration file:
$ kong start -c kong_DEVELOPMENT.yml
When developing, use the Makefile
for doing the following operations:
Name | Description |
---|---|
install |
Install the Kong luarock globally |
dev |
Setup your development environment |
run |
Run the DEVELOPMENT environment (kong_DEVELOPMENT.yml ) |
seed |
Seed the DEVELOPMENT environment (kong_DEVELOPMENT.yml ) |
drop |
Drop the DEVELOPMENT environment (kong_DEVELOPMENT.yml ) |
lint |
Lint Lua files in kong/ |
coverage |
Run unit tests + coverage report (only unit-tested modules) |
test |
Run the unit tests |
test-all |
Run all unit + integration tests at once |