The first step was to study many ways that the program could have, searching for different tools, languages and servers.
AWS Lambda using JavaScript was the tool selected, using the same AWS server.
The software was divided in two, the notifications generator and the notifications handler.
The first part, the notifications generator, was in charge of running in a determinate scheduled time and analyzing a specific set of data that was selected with a SQL Query in the PostgreSQL database. Each notification had it’s own query. For example, if the notification showed the summary of the consumption of last month, the query selected the data necessary for that.
If the user data matched the requirements to benotified, the notification was sent with the second partof the software, the notifications handler.
The notifications handler was a AWS Lambda functiontriggered by a insertion in a table in the database.
It notified the user in 3 possible ways, depending onthe settings of the notification, it could be via the NEUApp, SMS of e-mail.
After being notified, the user could see that notification in the platform.
Process to develop the software