Skip to content
Azlaan Irshad

All projects

ElectionDB

A web app for comparing Dutch election results by year, party and region, with maps and charts.

Role
Team member with a lot of responsibility
Context
Election results on maps and in charts
Stack
Java, Spring Boot, Hibernate, MySQL, Vue.js, Vite, Tailwind CSS, PrimeVue, Chart.js, Leaflet, and Docker

What it's for

ElectionDB lets you compare Dutch election results across several years. Maps and charts show the results by year, by party and by region.

What we built

This was a semester 3 school project at the HvA, in which I had a lot of responsibility.

  • Data. The results come as XML files, together more than 20 GB across several election years. We convert them to compressed JSON of about 400 to 600 MB.
  • Backend. Spring Boot in Java, with Hibernate and MySQL. The XML is read with JAXB.
  • Frontend. Vue with Vite, Tailwind CSS and PrimeVue. Maps with Leaflet and charts with Chart.js.

The backend, frontend and database run together in Docker.

Gallery

9

  • The ElectionDB home page

  • Searching for a party from the home page

  • A map showing the party with the most votes in each city

  • The introduction to the election statistics

  • The total number of votes per party in 2023 as a donut chart

  • The same map in dark mode

  • The number of seats per party in 2023

  • The seats of a few parties compared over the years

  • Election results per city, with the votes per party