Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbobm/apps
Monolithic repository that hosts multiple simple applications, from HTTP API to AMQP workers.
https://github.com/tbobm/apps
containers demo docker example-app hello-world microservices python
Last synced: 3 days ago
JSON representation
Monolithic repository that hosts multiple simple applications, from HTTP API to AMQP workers.
- Host: GitHub
- URL: https://github.com/tbobm/apps
- Owner: tbobm
- License: mit
- Created: 2022-04-10T11:59:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T14:38:17.000Z (3 months ago)
- Last Synced: 2024-08-21T16:17:58.481Z (3 months ago)
- Topics: containers, demo, docker, example-app, hello-world, microservices, python
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tbobm/apps
[![Build Containers](https://github.com/tbobm/apps/actions/workflows/main.yaml/badge.svg)](https://github.com/tbobm/apps/actions/workflows/main.yaml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
A centralized collection of containers to use as example apps.
## API
### HTTP
#### Hello World
Path: [`./api/http/hello/`](./api/http/hello/)
Example usage:
```console
$ docker run -p 8000:5000 -d --rm ghcr.io/tbobm/apps:api-http-hello-latest
$ curl localhost:8000/health
OK
```#### http-dump
Path: [`./api/http/dump/`](./api/http/dump/)
Example usage:
```console
$ docker run -p 8000:8000 -d --rm ghcr.io/tbobm/apps:api-http-dump-latest
$ curl localhost:8000/any/path -H "example-header: any-value"
{"path":"any/path","method":"GET","headers":{"host":"localhost:8000","user-agent":"curl/7.81.0","accept":"*/*","example-header":"any-value"},"form":{}}
```## Lambda
### Hello World
Path: [`./lambda/hello/`](./lambda/hello/)
Example usage:
```console
$ docker run -p 9000:8080 -d ghcr.io/tbobm/apps:lambda-hello-latest
$ curl "localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
"Hello World"
```## SQS
### Producer
Path: [`./sqs/producer/`](./sqs/producer/)
Example usage:
```console
$ docker run -e SQS_QUEUE_URL="https://sqs.eu-west-1.amazonaws.com/111111111111/my-queue" \
-it ghcr.io/tbobm/apps:sqs-producer-latest
```