This repository has been archived by the owner. It is now read-only.
Containo is a fictious company that is running a platform that is running .NET Core APIs in Docker containers and exposing them via Kong as an API gateway.
Branch: master
Clone or download
Latest commit 597d026 Jun 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
media
src Remove containers API (#6) Dec 22, 2017
.gitattributes
.gitignore Initial commit Aug 17, 2017
.travis.yml
LICENSE
README.md Update README.md Jun 6, 2018

README.md

Containo

This repository is dead, a new version of this scenario is coming soon.

Build StatusLicense

Containo is a fictious company that is building a product that provides a catalog of products to buy that 3rd parties can consume.

The platform is running .NET Core APIs that are running in Docker containers exposed via Kong as an API gateway.

DockerKong

Architecture

Architecture

Installation

In order to run this sample you'll need to prepare your environment:

  1. Create a new docker network - docker network create api-ecosystem
  2. Install Kong that is using Cassandra or PostgreSQL as a data store. (Docker image)
  3. Deploy the containo API via Docker Compose in src/docker-compose.yml
  4. Create an API in Kong
curl -i -X POST \
  --url http://localhost:8001/apis/ \
  --data 'name=containo.api' \
  --data 'uris=//containo' \
  --data 'upstream_url=http://containo:80/api'
  1. Start consuming the API
curl -i -X GET --url localhost:8000/containo/records

Prefer a UI to manage Kong? You can either use Kong Dashboard, Kong CLI or KongDash desktop client, which are 3rd party tools that give you a Management UI.

Important - All containers need to be in the api-ecosystem network.

License Information

This is licensed under The MIT License (MIT). Which means that you can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the web application. But you always need to state that Codit is the original author of this web application.