Skip to content

🔥 A self-hosted, real-time polling system.

Notifications You must be signed in to change notification settings

julianolorenzato/trendle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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