-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from aio-libs/make-demo-more-nice
Make demo more nice
- Loading branch information
Showing
7 changed files
with
133 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% macro render_service(service) -%} | ||
<div class="uk-card uk-card-default uk-card-body uk-card-hover"> | ||
<h3 class="uk-card-title uk-heading-line"> | ||
<a href="http://{{service.host}}:{{service.port}}/api/v1/data"target="_blank">{{service.name}}</a> | ||
</h3> | ||
<ul> | ||
<li>host: {{service.host}}</li> | ||
<li>port: {{service.port}}</li> | ||
</ul> | ||
<div class="uk-child-width-expand@s uk-grid-small uk-grid-match" uk-grid> | ||
{% for s in service.children %} | ||
{{ render_service(s) }} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{%- endmacro %} | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>aiozipkin microservices demo</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.38/css/uikit.min.css" /> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.38/js/uikit.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.38/js/uikit-icons.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="uk-container uk-container-center uk-margin-top uk-margin-large-bottom"> | ||
<hr class="uk-divider-icon"> | ||
<article class="uk-article"> | ||
<h1 class="uk-article-title"><a class="uk-link-reset" href="">aiozipkin microservices demo</a></h1> | ||
<p class="uk-text-lead"> | ||
There is larger micro services example, using <a hre"https://github.com/aio-libs/aiohttp">aiohttp</a>. | ||
This demo consists of five simple services that call each other, as result you can study client | ||
server communication and zipkin integration for large projects. Each | ||
box element of this page rendered with help of different service. | ||
</p> | ||
<p><span class="uk-label">Zipkin UI</span> <a href="{{zipkin}}" target="_blank">{{zipkin}}</a></p> | ||
{{ render_service(service) }} | ||
|
||
</article> | ||
<hr class="uk-divider-icon"> | ||
<h5 class="uk-text-center"> | ||
<span> | ||
<a hre"https://github.com/aio-libs/aiozipkin">https://github.com/aio-libs/aiozipkin</a> | ||
</span> | ||
</h5> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
|