Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bujosa/dilmun
- Owner: bujosa
- License: mit
- Created: 2023-10-27T23:29:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-29T02:34:54.000Z (over 1 year ago)
- Last Synced: 2025-01-19T02:53:00.460Z (11 days ago)
- Topics: golang, pubsub
- Language: Go
- Homepage:
- Size: 324 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)