Skip to content
Example of how to use KrakenD with a custom martian modifier and api2html to render mustache templates.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Makefile
README.md
api2html.json
character.mustache
docker-compose.yml
krakend.json
marvel.go

README.md

My first fullstack MVP

This is the example used in this blog post.

Can be used as simple example of how to run KrakenD and api2html too.

Marvel API key

You need an Marvel comics API Key to run this example:

https://developer.marvel.com/

Once you have your own API Key, configure the github.com/devopsfaith/krakend-martian extra_config section in the krakend.json config file.

Build KrakenD and api2html

You need docker to make this example work as is (everything is compiled using docker, you don't need go)

make build_krakend
make build_api2html

This will generate 2 docker containers:

  • devopsfaith/krakend:custom
  • devopsfaith/api2html:latest

Running the example

You can run a docker-compose up to bring the system up.

Testing:

curl -i http://localhost:8081/character/Wolverine
You can’t perform that action at this time.