voting-system

module
v0.0.0-...-20809a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2024 License: MIT

README

Voting System

This project is a basic voting system where an API handles vote requests and publishes messages to a message broker, and a consumer processes these votes asynchronously and save them to a database.

Diagrams

Architecture Diagram

arch

Tech Stack-Backend: Golang

  • Go 1.22
  • PostgreSQL
  • RabbitMQ
  • Nginx

Setup

  1. Install dependencies:
go mod tidy
  1. Set up environment variables: Create a .env file from .env.exampl and replace the values with your secrets
cp .env.example .env
  1. Set up docker container
docker-compose up -d
  1. Start HTTP server
go run scripts/loadtest.go

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL