Engineering notes
Five of us built a learning platform for an assignment. Here is what I learned
Notes from building APMoodle, an ASP.NET learning management system with themed quizzes, chat and secure password recovery, as a team of five: what went well, the last-week merge, and what I would change.
By Vincent Teo · Updated
The brief
The assignment was to build a web application with ASP.NET. Our group of five decided to build something we use every day as students and have plenty of opinions about: a learning management system. We called it APMoodle.
It has three kinds of users. Students join a module with an invitation code, read the materials, take quizzes and see their scores over time. Lecturers manage their modules, upload materials, build quizzes and talk to students. Admins manage accounts and post announcements.
We got the highest grade, 4.0, and very good feedback from our lecturer. I am proud of it, and I think the rest of the team is too. You can open it here, though it is on free hosting, so give it a moment to wake up.
The feature people remember: quiz themes
A quiz on most learning platforms looks like a form. We wanted ours to feel like something you would not mind opening.
So when a lecturer creates a quiz, they pick a theme. There is a clean default, a calm green Forest, a pop-art Comic, a soft Watercolor, and the one everyone tries first: a game-show theme in the style of Kahoot, with big coloured answer tiles, a large timer and a score counter.
Same questions, same grading, completely different mood. A lecturer can use the game-show look for a fun revision round and a plain one for something serious. Quizzes can also be made public, so someone without an account can try one as a guest.
The boring parts we did not skip
It would have been easy to treat security as extra. We decided a platform that holds student accounts should behave like one.
Passwords are hashed with BCrypt, never stored as plain text. If you forget your password, a 6-digit one-time code is e-mailed to you and it expires after five minutes. That form is protected by Google reCAPTCHA, so a script cannot hammer it. And whether or not the e-mail address exists, the page gives the same reply, "if the email exists, an OTP has been sent", so nobody can use it to find out who has an account.
Pages also check your role on the server, so a student cannot open a lecturer page just by typing its address.
Chat without the fancy part
Students and lecturers can message each other inside the platform, with unread markers. Under the hood it is simple: the page asks the server for new messages every few seconds.
That is called polling. It is not the elegant way, since a proper real-time connection would push a message the moment it is sent. But polling was something we could build, test and trust inside the deadline, and it works. For a class-sized group nobody notices the short delay.
The last week
Our one real scare was self-inflicted. In the final week we decided to add a few more features. Everybody built their part, everybody pushed, and then we spent a good chunk of that week untangling merge conflicts instead of polishing.
It ended fine. Everything worked on the day, including the chat and the file uploads. But the lesson stuck with me: agree on a date after which nothing new goes in, and merge small pieces often instead of five big ones at the end. Git only gets scary when you leave it alone for too long.
What I would change now
Use a real-time connection (SignalR, in the ASP.NET world) for chat. Store uploaded files in proper file storage instead of the web server's own folder. Generate the one-time code with a cryptographic random generator. And write automated tests for the paths that matter most: registering, resetting a password, joining a module and grading a quiz.
None of that takes away from what we shipped. It is just what you see when you look back at your own work a few months later, which I think is the point of looking.
The code is on GitHub.