The project aims to be an aggregator for election information in Romania. The project will contain historic information for elections in Romania, will contain real time results for each election, as it will parse results published by BEC (Biroul Electoral Central) and it will also contain information about the budgets spent during the electoral campaign.
The partial results published by BEC (Biroul Electoral Central) are often raw results that are not easily interpreted and give no meaningful information to regular users. The aim of the project is to aggregate the raw data and provide timely updates on the progression of voting results in Romanian elections.
Contributing | Built with | Repos and projects | Deployment | Feedback | License | About Code4Ro
This project is built by amazing volunteers and you can be one of them! Here's a list of ways in which you can contribute to this project.
You can also list any pending features and planned improvements for the project here.
C# 7
.NET Core 2.1
NuGet
- Amazon S3 Storage
- Amazon DynamoDB
TBD
- install and configure AWS (if it's not already done)
aws configure
- in order to configure AWS, you need to create an AWS account
- Install node dependencies for
ClientApp
by following instructions fromsrc\ElectionResults.WebApi\ClientAp\README.md
- Update configurations
src\ElectionResults.WebApi\appsettings.json
as necessary for your local environment- update
bucketName
as it has to be a unique id in Amazon, e.g.code4-presidential-2019-your-name
- update
cd src\ElectionResults.WebApi
dotnet run
The settings are stored in appsettings.json. In this file you'll find the following settings:
- jobTimer: "*/5 * * * *"
- runs the CSV downloader job every 5 minutes
- bucketName: "code4-presidential-2019"
- the name of the bucket where CSV files are downloaded
- tableName: "electionresults"
- the name of the DynamoDB Table where the JSON statistics are stored
- PUT request on /api/settings/election-config with a JSON representation of ElectionsConfig.cs. This will overwrite the json from AWS Parameter Store.
- The ElectionsConfig object has:
- a list of candidates where information about them can be provided(candidates picture, names, CSV column id, etc.)
- a list of BEC URLs, each file has the type of results(provisional, partial or final), location(Romania or Diaspora), URL
cd tests\ElectionResults.Tests
dotnet test
- Request a new feature on GitHub.
- Vote for popular feature requests.
- File a bug in GitHub Issues.
- Email us with other feedback contact@code4.ro
This project is licensed under the MPL 2.0 License - see the LICENSE file for details
Started in 2016, Code for Romania is a civic tech NGO, official member of the Code for All network. We have a community of over 500 volunteers (developers, ux/ui, communications, data scientists, graphic designers, devops, it security and more) who work pro-bono for developing digital solutions to solve social problems. #techforsocialgood. If you want to learn more details about our projects visit our site or if you want to talk to one of our staff members, please e-mail us at contact@code4.ro.
Last, but not least, we rely on donations to ensure the infrastructure, logistics and management of our community that is widely spread across 11 timezones, coding for social change to make Romania and the world a better place. If you want to support us, you can do it here.