Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bujosa/dilmun

This is a simple project related with pubsub + go
https://github.com/bujosa/dilmun

golang pubsub

Last synced: 9 days ago
JSON representation

This is a simple project related with pubsub + go

Awesome Lists containing this project

README

        

# Dilmun

This is a simple project related with pubsub + go

## How to run

### Requirements

- Go 1.21 or higher
- Create a project in Google Cloud Platform and enable the Pub/Sub API for it (see [this](https://cloud.google.com/pubsub/docs/quickstart-client-libraries#before-you-begin) for more information)

### Environment variables

See the [`.env.example`](.env.example) file to see the environment variables that you need to set.

### Run

```bash
go run main.go
```

Example of calling the endpoint:

```bash
curl --location --request POST 'http://localhost:8080/message' \
--form 'message=Hello world'
```

## Result of the project

![Example calling message endpoint](example.png)