Vote-Logger is a really simple NodeJs process to run a vote logger that saves the vote into redis and also has a websocket to log votes external.
To get started with Vote-Logger:
- Explore the Code: Familiarize yourself with the source code to understand how everything works and how websockets are used for communication between services.
- Clone and Configure: Clone this repository to your local machine. Before running the application, you'll need to set up your configuration files as described below.
- Understand the License: Ensure you read and comply with the license terms of this repository.
You need to create and configure the following JSON files:
This file contains authentication tokens necessary for Redis and websocket communication.
This file specifies the allowed bots there auth tokens for the Botlists and the vote length how long the vote counts.
This file specifies the ports the service should run on.
{
"httpPort": 8080,
"wsPort": 8081
}
This file can be ignored its only there to identify the current requesting botlist.
Your contributions and feedback are welcome to improve this project. Feel free to submit issues or pull requests for enhancements.