Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianolorenzato/trendle
🔥 A self-hosted, real-time polling system.
https://github.com/julianolorenzato/trendle
docker go golang poll postgresql project ranking real-time redis self-hosted voting websocket
Last synced: 3 months ago
JSON representation
🔥 A self-hosted, real-time polling system.
- Host: GitHub
- URL: https://github.com/julianolorenzato/trendle
- Owner: julianolorenzato
- Created: 2023-05-09T21:05:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-06T19:48:11.000Z (10 months ago)
- Last Synced: 2024-06-21T18:12:06.459Z (5 months ago)
- Topics: docker, go, golang, poll, postgresql, project, ranking, real-time, redis, self-hosted, voting, websocket
- Language: Go
- Homepage:
- Size: 4.18 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trendle
>A self-hosted, real-time polling system.
## About
Trendle is a poll management system capable of persisting
and responding to poll results in real-time through WebSocket connections.## How to get started
Trendle uses PostgresSQL to persist the data, Redis to handle
the voting pubsub and Docker to containerize the application,
so make sure you have them in your environment.First, set the following environment variables:
- **PORT** (where Trendle will listen)
- **REDIS_ADDR** (Redis address)
- **REDIS_PASS** (Redis password)
- **DATABASE_URL** (PostgresSQL connection string)Then, build the Docker image running the following command:
```
docker build --target prod -t trendle-app .
```Finally, run the image running the following command:
```
docker run trendle-app:latest
```