{"id":19686853,"url":"https://github.com/donaldkellett/linux-rocks","last_synced_at":"2026-04-12T00:03:22.519Z","repository":{"id":81623831,"uuid":"291211362","full_name":"DonaldKellett/Linux-Rocks","owner":"DonaldKellett","description":"Proof of concept voting app. Vote for your favorite Linux distribution!","archived":false,"fork":false,"pushed_at":"2020-09-03T06:15:27.000Z","size":1548,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T07:51:28.371Z","etag":null,"topics":["docker","express","linux","nodejs","sql"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DonaldKellett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-29T06:01:49.000Z","updated_at":"2020-09-03T06:12:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2266f4d2-7897-4bc9-ab81-56ad84038d88","html_url":"https://github.com/DonaldKellett/Linux-Rocks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonaldKellett%2FLinux-Rocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonaldKellett%2FLinux-Rocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonaldKellett%2FLinux-Rocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DonaldKellett%2FLinux-Rocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DonaldKellett","download_url":"https://codeload.github.com/DonaldKellett/Linux-Rocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993951,"owners_count":19890419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","express","linux","nodejs","sql"],"created_at":"2024-11-11T18:31:05.178Z","updated_at":"2026-04-12T00:03:22.492Z","avatar_url":"https://github.com/DonaldKellett.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux-Rocks\n\nProof of concept voting app. Vote for your favorite Linux distribution!\n \n## System Requirements\n\nA Linux host. If you are using Windows/macOS, you should be able to run the Docker containers using Docker Desktop, but I would personally recommend installing Alpine Linux (or a Linux distribution of your choice) on a virtual machine using a hypervisor of your choice (e.g. VirtualBox) and running the Docker containers there instead.\n\n## Running the app\n\nFirst make sure Docker is installed on your Linux host:\n\n```bash\n$ sudo apt install docker     # on Debian-based distributions\n$ sudo yum install docker     # on older Fedora-based distributions\n$ sudo dnf install docker     # on newer Fedora-based distributions\n$ sudo zypper install docker  # on SUSE-based distributions\n$ sudo apk add docker         # on Alpine Linux\n```\n\nAnd make sure the Docker daemon is up and running:\n\n```bash\n$ sudo systemctl start docker  # With systemd\n$ sudo service docker start    # With SysVInit/OpenRCInit\n```\n\nNow `cd` to the root directory of this repo and run the launch script:\n\n```bash\n$ ./launch.sh\n```\n\nThe script will prompt for your `sudo` password when required.\n\nOnce the launch script finishes execution, point your Web browser to the address of your Linux host and enjoy the app! _Hint: you can find the IP address of your Linux host by executing `ip addr show` on the command line._\n\nWhen you're done playing with the app, simply run the cleanup script and you're done:\n\n```bash\n$ ./cleanup.sh\n```\n\n## Technologies involved\n\n- Linux\n  - Development environment: [Alpine Linux](https://alpinelinux.org/) 3.12.0\n- Docker\n  - Webserver container: Alpine Linux 3.12.0\n  - MariaDB container: [Ubuntu](https://ubuntu.com/) 20.04.1 LTS\n  - Mailserver container: [Debian](https://www.debian.org/) GNU/Linux 9\n- Node.js - major libraries include:\n  - [Express](https://expressjs.com/)\n  - [EJS](https://ejs.co/)\n  - [MariaDB](https://www.npmjs.com/package/mariadb)\n  - [Nodemailer](https://nodemailer.com/about/)\n- SQL - MariaDB\n\n## Features\n\n- One vote per email address\n- Graceful handling of most user errors (e.g. invalid email address)\n- One-Time Password (OTP) authentication during voting to prevent voting fraud\n- Proper hashing of OTP with SHA512 - vote impersonation by hackers should be infeasible despite data breach\n- Decoupling of individual votes from overall voting statistics - privacy-preserving(?)\n\n## Shortcomings\n\n- Registered email addresses stored as plaintext in database: possible privacy issue in case of data breach?\n- Votes still susceptible to manipulation through multiple email addresses from one person\n- Minimal/non-existent error handling for server-side errors (e.g. failed SQL query)\n- No dedicated 404 page (or 403/500/... page): users greeted with unwelcoming message `Cannot GET /nonexistent/path` instead\n- No salt for OTP hash; but then, OTP is auto-generated and not chosen by user so probably a non-issue anyway\n- Lack of differential privacy in displaying voting results page implies inference attack may still be possible(?)\n- Email-sending setup does not use SMTP smart host: emails are delivered with unacceptable delay and often recognized by major email providers as spam\n- Main webserver container cannot function independently of mailserver/database containers - requires customized shell script for coordinating networking between containers after they have been started\n- UI for results page could be better - maybe use a table with the logos for each Linux distribution instead of just a plain list with percentages\n\n## Docker Image\n\nA pre-built Docker image for the webserver is available at https://hub.docker.com/r/donaldsebleung/linux-rocks and can be pulled using:\n\n```bash\n$ sudo docker image pull donaldsebleung/linux-rocks:0.1\n```\n\n## License\n\nThe contents of this repo are licensed under [GPLv3](./LICENSE), with the UI frontend taken from [Landed by HTML5 UP](https://html5up.net/landed) licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonaldkellett%2Flinux-rocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonaldkellett%2Flinux-rocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonaldkellett%2Flinux-rocks/lists"}