Skip to content

DSD-TELCEL-ESCOM/INE-Votation-Distributed-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INE-Votation-Distributed-System

This is distrubuted system project simulating a SMS distributed solution for Mexico INE votation using C++ UDP Sockets and SQLite

Distribution

Web Server

Server that listens UDP request from votation and sends updates to web clients through socket.io.

Prerequisites

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • cd web-server
  • npm install

Configuration

  • open config.json file
  • update udp, http and express default server settings
  • set step for the number of votes received before sending an update signal to the clients. The server also sends updates every second automatically.
{
	"udp": {
		"host": "0.0.0.0",
		"port": 7777
	},
	"http": {
		"host": "0.0.0.0",
		"port": 8080
	},
	"express": {
		"host": "0.0.0.0",
		"port": 8081
	},
	"step": 1000
}

Running

Web Client

Client that listens web server updates from votation through socket.io.

Prerequisites

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • cd web-client
  • npm install node-static

Configuration

  • open index.js file
  • modify app socket and http configuration vars
{
	...
	socketURL : 'http://localhost:8080',
	httpURL : 'http://localhost:8081',
	...
}

Running

Preview

About

This is distrubuted system school project simulating a SMS distributed solution for Mexco INE votation using C++ UDP Sockets and SQLite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published