Giter Site home page Giter Site logo

kanpeki / rezultate-vot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrei1489/rezultate-vot

0.0 0.0 0.0 1.13 MB

Romanian partial election results app. The role of the project is to offer real time aggregated results based on partial information published by BEC (Biroul Electoral Central)

License: Mozilla Public License 2.0

C# 55.67% HTML 2.15% JavaScript 34.59% CSS 7.60%

rezultate-vot's Introduction

Rezultate Vot

GitHub contributors GitHub last commit License: MPL 2.0

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.

See the project live

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

Contributing

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.

Built With

Programming languages

C# 7

Platforms

.NET Core 2.1

Package managers

NuGet

Database technology & provider

  • Amazon S3 Storage
  • Amazon DynamoDB

Repos and projects

TBD

Deployment

Requirements

Prerequisites
  • 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 from src\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
Run the project
  • cd src\ElectionResults.WebApi
  • dotnet run

Configuration

The settings are stored in appsettings.json. In this file you'll find the following settings:

  • interval: 30
    • runs the CSV downloader job every 30 seconds
  • 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

CSV URLs and mappings

  • 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

Run unit tests

  • cd tests\ElectionResults.Tests
  • dotnet test

Feedback

  • Request a new feature on GitHub.
  • Vote for popular feature requests.
  • File a bug in GitHub Issues.
  • Email us with other feedback [email protected]

License

This project is licensed under the MPL 2.0 License - see the LICENSE file for details

About Code4Ro

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 [email protected].

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.

rezultate-vot's People

Contributors

andreimitrea avatar aniri avatar ascripcaru avatar bogdanbujdea avatar elenabujdea avatar idormenco avatar mimarcel avatar raducstefanescu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.