Skip to content

alexisseurin/krakend-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KrakenD API Gateway

Image header

Introduction

This repository holds a docker compose with the API gateway KrakenD (Community Edition).

KrakenD is an open-source API gateway that simplifies the process of composing, routing, and aggregating microservices into a single RESTful JSON API. It helps you reduce latency, improve security, and streamline API management.

Documentation

Commands

Run

The docker run command runs a command in a new container, pulling the image if needed and starting the container.

docker run -it -p 8080:8080 -v PWD:/etc/krakend/ devopsfaith/krakend run --config /etc/krakend/krakend.json

Now see http://localhost:8080/__health. The gateway is listening.

Start the services

docker-compose up [--build] [-d]

Test the API Gateway

curl http://localhost:8002/users  # User-service
curl http://localhost:8003/products  # Product-service
curl http://localhost:8081/api/sites # JSON Placeholder API

License

FOSSA Status