Skip to content

A distributed application running across multiple Docker containers.

Notifications You must be signed in to change notification settings

sidhu2003/voting-app

Repository files navigation

Voting App

A distributed application running across multiple Docker containers.

Getting started

Download Docker Desktop for Mac or Windows. Docker Compose will be automatically installed. On Linux, make sure you have the latest version of Compose.

This solution uses Python, Node.js, .NET, with Redis for messaging and Postgres for storage.

Run in this directory to build and run the app:

docker compose up -d

The vote app will be running at http://localhost:8000, and the results will be at http://localhost:4000.

Architecture

Architecture diagram

  • A front-end web app in Python which lets you vote between two options
  • A Redis which collects new votes
  • A .NET worker which consumes votes and stores them in…
  • A Postgres database backed by a Docker volume
  • A Node.js web app which shows the results of the voting in real time

Notes

The voting application only accepts one vote per client browser. It does not register additional votes if a vote has already been submitted from a client.

About

A distributed application running across multiple Docker containers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published