https://github.com/alexisseurin/krakend-project
Simple KrakenD Project
https://github.com/alexisseurin/krakend-project
api-gateway docker-compose krakend krakend-ce nodejs yaml
Last synced: 3 months ago
JSON representation
Simple KrakenD Project
- Host: GitHub
- URL: https://github.com/alexisseurin/krakend-project
- Owner: alexisseurin
- Created: 2024-06-29T21:36:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-29T21:39:18.000Z (over 1 year ago)
- Last Synced: 2025-03-20T02:13:07.296Z (7 months ago)
- Topics: api-gateway, docker-compose, krakend, krakend-ce, nodejs, yaml
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KrakenD API Gateway
## 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
- [Community Edition](https://www.krakend.io/docs/overview/) (open-source, unlimited use, corporate-grade features)
- [Enterprise Edition](https://www.krakend.io/docs/enterprise/overview/) (Extended functionalities, support, training, professional services)
- [First KrakenD configuration file krakend.json](https://designer.krakend.io).## Commands
### Run
The docker run command runs a command in a new container, pulling the image if needed and starting the container.```bash
docker run -it -p 8080:8080 -v PWD:/etc/krakend/ devopsfaith/krakend run --config /etc/krakend/krakend.json
```Now see [http://localhost:8080/__health](http://localhost:8080/__health). The gateway is listening.
### Start the services
```bash
docker-compose up [--build] [-d]
```### Test the API Gateway
```bash
curl http://localhost:8002/users # User-service
curl http://localhost:8003/products # Product-service
curl http://localhost:8081/api/sites # JSON Placeholder API
```## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fkrakendio%2Fkrakend-ce?ref=badge_large)