Alohomora is a Windows desktop app that lets in only registered users into an institution.
The app lets you
- create a member
- renew their membership
- delete members
- check basic stats about the institution regarding member visits
- let in only registered members with valid membership with the companion app
Important
Make sure your PC and mobile are on the same network.
Once you opened the app, head over to settings and look for 'Connect your mobile' option. It will present a QR code for your phone to scan. By scanning you have access to the companion app which lets you scan members ID card and the companion alerts you of their validity.
ID cards for members are basically a QR code with their username embedded. On checkup the companion with the help of the app looks up the username on the database and notifies their validity.
The app is just a simple website hosted on the machine where the app runs. The website and app runs together. Works better on smartphones as it needs access to a camera.
Important
Since it uses http for connection you will need to change some settings to gain access to the camera.
On Chrome browser-
- First connect your mobile and gain access to the companion app.
- Copy the url.
- Visit and enable
chrome://flags/#unsafely-treat-insecure-origin-as-secure - Add the address you copied earlier to the text area. This is a one time process.
- Restart chrome and connect with the companion app once more.
- Enjoy!
Credit: a stack overflow answer
Visit here for the repo.
This is my CS50x final project. I am a gym regular and I've always wondered if instead of relying solely on huge files and records for keeping track of the members why not digitalize it.
"We do these things not because they are easy, but because we thought they were going to be easy."
The name Alohomora is actually a spell from Harry Potter franchise where wizards use the spell to unlock locked doors.
This was CS50.