Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```