Unsomnia

An alarm that can only be turned off when the user finishes a (or several) match 3 game(s)

August 2022 — August 2022

Summary

An alarm that can be only be turned of by playing (and completing) a match 3 game. The number of match 3 game that needs to be completed can be configured. Part of a milestone assignment from Sparta 2021.

P.S. sadly the database is no longer functional (R.I.P. Heroku) so the site doesn't work anymore.

Developer Diaries

To say the site is ugly would be an understatement. There's a lot of polish that could've been done to the site's appearance and the tidiness of the code. But I did this when I was very busy with other things and so didn't have enough time to really make it aesthetically pleasing or conform to all of the existing best practices.

I was mainly focused on further learning back-end with this. The main difference with the Kantin Kejujuran project before was that this project uses NextJS from front to back. This was done in order to accelerate development and also because I wanted to learn how to make a full-stack NextJS app. I think the main thing I missed the most coming from express was the middleware flexibility. NextJS middleware works very differently in a way that I don't really like, to the point I even used a library that aims to make NextJS api routes work like Express. I do like how filesystem routing made the structure of the back-end endpoints obvious without having to go through various disparate files, but that's about it.

Another notable thing that I learned here is how to use an ORM, specifically Prisma. I'll be continuing to use Prisma in all of my future project after this point.

All in all what I am most proud of is that this clunky thing won second best milestone. 😀

Gallery