To keep me awake and help her stay awake, I started reading a few pages of books during these moments, but I was using the flashlight on my phone, which was very bright and unpleasant.
I was already considering buying a reading light, but that morning, in a moment of insomnia, I had the idea of creating an app that used the phone screen as a flashlight. I got up quickly and typed a prompt in ChatGPT, which generated something very close to what I imagined.
I copied the code and put it online using GitHub Pages right after. The whole process took about 40 minutes (and at least made me very sleepy right after; I fell asleep).
I used the app that same night, and this morning, I decided to improve it, improve some things, add some simple features, and also turn it into a PWA app that can be installed (so I could use it in full screen).
I liked the result so much that I published the app for free. It's straightforward, but I hope it will be useful to more people:
https://readinglight.app/
You can see all the repositories here: https://github.com/pwc-code-generator.
PWC was developed with Javascript/NodeJS, and includes these technologies:
SilverB Template Engine: SilverB is a template engine but made for code and text generation and to be used with PWC Code Generator PWC Code Generator CLI: This is the main CLI Tool, responsible for filter the “Project File” data, sort by precedence according to the relationships, and build the “Smart Project Object”, that is passed to a generator (a generator is a separated software write in JS that uses the methods and tools of the Smart Project Object and the PWC Utils to facilitate the code generation). Laravel 5.5 Generator: This is the generator used on the AppStart platform MVP. It generates a Laravel 5.5 project with ACL. Currently, it is the unique available generator. I hope the guys are inspired to create more and more generators :D You can see all the documentation here. Not yet complete, but I will make it better as soon as possible. The code is not the better, and I will make a refactoring in the future, but you can already use it to make awesome things.
I hope PWC can be useful for you. Were many attempts and errors to make it. Here it helps a bit. Last week, I generated the complete backend of our new website with it. Practically, I worked only on the front, and with the time saved, I took the opportunity to learn Bootstrap 4. So, I think it can be useful for you.