All Projects → devopsfaith → Krakend Playground

devopsfaith / Krakend Playground

Licence: apache-2.0
Get started with KrakenD. A docker compose with KrakenD and a fake api to play with

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Krakend Playground

Rotatedrevealers
Animated rotated overlays, or "reveal" elements for interesting page transition effects.
Stars: ✭ 121 (-6.92%)
Mutual labels:  demo
Redux Framework
Redux is a simple, truly extensible options framework for WordPress themes and plugins!
Stars: ✭ 1,602 (+1132.31%)
Mutual labels:  demo
Demo Twilio Backend Nodejs
A sample backend that demonstrates how to generate a Virgil JWT and Twilio token used for authentication with the Virgil and Twilio services
Stars: ✭ 128 (-1.54%)
Mutual labels:  demo
Game with cocoscreater
学习cocosCreator开发的小游戏,有贪吃蛇,flappy bird, 2048等
Stars: ✭ 122 (-6.15%)
Mutual labels:  demo
Favesound Redux
🎶 A SoundCloud Client in React + Redux running in production. Live Demo and Source Code to explore React + Redux as a beginner.
Stars: ✭ 1,586 (+1120%)
Mutual labels:  demo
Taobaokeapi
淘宝客API演示
Stars: ✭ 128 (-1.54%)
Mutual labels:  demo
Ionic Social App
ionic demo application asynchronnous requirejs sass
Stars: ✭ 120 (-7.69%)
Mutual labels:  demo
React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+1409.23%)
Mutual labels:  demo
Vue2 Scaffold
The best scaffold for Vue 2.x based on vue-cli#vuejs-templates/webpack
Stars: ✭ 125 (-3.85%)
Mutual labels:  demo
Aixijs
AIXIjs - General Reinforcement Learning in the Browser
Stars: ✭ 128 (-1.54%)
Mutual labels:  demo
Dress Code
The official style guide and framework for all Zalando Brand Solutions products
Stars: ✭ 123 (-5.38%)
Mutual labels:  demo
Git Cheats
Git Cheats - Interactive Cheatsheet For Git Commands
Stars: ✭ 124 (-4.62%)
Mutual labels:  demo
Todayx
🌈Flutter App:🎊「今日份的X」(每天推荐一个:图片、诗歌、名言、音乐、乐评、高等数学、两种配色、化学方程式、Github Repo、知乎问题、文章)
Stars: ✭ 128 (-1.54%)
Mutual labels:  demo
Vue Live
A component to demo components, inspired by react-live
Stars: ✭ 123 (-5.38%)
Mutual labels:  demo
Scrapy demo
all kinds of scrapy demo
Stars: ✭ 128 (-1.54%)
Mutual labels:  demo
Demosify
Create a playground to show the demos of your projects.
Stars: ✭ 121 (-6.92%)
Mutual labels:  demo
Xrichtext
一个Android富文本类库,支持图文混排,支持编辑和预览,支持插入和删除图片。
Stars: ✭ 1,639 (+1160.77%)
Mutual labels:  demo
Cute Deferred Shading
Cute little deferred shading implementation.
Stars: ✭ 129 (-0.77%)
Mutual labels:  demo
Widgetexamples
A demo project showcasing different types of Widgets created with SwiftUI and WidgetKit.
Stars: ✭ 125 (-3.85%)
Mutual labels:  demo
Snippod Starter Demo App
A full stack 'Hacker News' style demo web application built with React + Redux (Front) and django REST Framework (Server).
Stars: ✭ 128 (-1.54%)
Mutual labels:  demo

KrakenD Playground logo

KrakenD Playground

The KrakenD Playground is a demonstration environment that puts together the necessary pieces to get you started with our API Gateway, using an example web application.

As KrakenD is an API gateway, we have added to the environment both the API (backend) that feeds the gateway and a website consuming KrakenD. Additionally, a dashboard with the metrics is also available so you can see your activity.

KrakenD Docker compose

Services

The docker-compose starts the following services:

Web client

The consumer of the API gateway is a simple Express JS application that interacts with KrakenD to fetch the data. All code is under web/.

The client is a Single Page Application using Auth0 to generate JWT tokens.

You don't need to install any npm locally, the docker image will download and install the dependencies in the container for you.

Runs on http://localhost:3000

Backend

A simple API that provides raw data to the gateway.

You can add or remove data any time by adding XML, JSON or RSS files in the data folder.

Runs on http://localhost:8000

The designer

An instance of Krakendesigner (the GUI for manipulating the krakend/krakend.json file.

You can drag the file krakend/krakend.json anytime in the dashboard and resume the edition from there.

Runs on http://localhost:8787

The gateway!

An instance of KrakenD with several endpoints. Its configuration is in the folder krakend/.

Runs on http://localhost:8080

Metrics

A Jaeger dashboard shows the traces of the activity you generate. Runs on http://localhost:16686

The JWT revoker

A simple implementation of a JWT rovoker using the KrakenD remote bloomfilter client.

Runs on http://localhost:9000

Start the service

Only if you want to try the Auth0 integration...

Create a new SPA application in Auth0 and fill the autogenerated values they give you under web/auth0-variables.js

var AUTH0_CLIENT_ID='AUTH0_CLIENT_ID';
var AUTH0_DOMAIN='AUTH0_DOMAIN';
var AUTH0_AUDIENCE = 'AUTH0_AUDIENCE';

This must be done before starting the docker-compose. If you have started docker-compose before setting these variables, you need to build the image again with docker-compose build web.

Start the service

Just:

docker-compose up

Play!

Fire up your browser, curl, postman, httpie or anything else you like to interact with any of the published services.

Editing the API Gateway endpoints

To add or remove endpoints, edit the file krakend/krakend.json. The easiest way to do it is by dragging this file to the KrakenD designer and download the edited file. To reflect the changes restart docker-compose.

To change the data in the static server (simulating your backend API) edit, add or delete files in the data/ folder.

The following endpoints are worth noticing:

  • /private/auth0: Protects and endpoint validating JWT tokens issued by Auth0
  • /private/custom: Protects and endpoint validating custom JWT tokens signed with /token.
  • /token: Signs a token
  • /public: Simple aggregation of two public API calls from Bitbucket and Github with some field selection.
  • /splash: Public endpoint aggregating data from the internal backend

Contribute!

This repository is the place for everyone to start using KrakenD. Maybe we are too used to KrakenD, and we don't realize what would be good to include here for a starter.

If it doesn't help you good enough or you think that you can add other demo endpoints or middleware integrations, please open a pull request!

Thanks!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].