Utilities are used to provide some platform functionality or fix some odd or missing data due to service interruptions, modifications etc.
The utilities live under the server/bin folder.
Most utilities require dependencies to be resolved and code to be configured as explained in the main readme.
The send_emails utility is run at intervals and is used to send email alerts to users for new and updated plans. It queries the database for unsent plans, intersects their geometries with user alert areas and sends out emails if needed using an SMTP service according to the set configuration.
$ node bin/send_emailsThe serve utility is used in production to serve our backend and frontend together on the same port using Express (reasons and specs further explained here and here).
$ npm run serve # or node bin/serveThe complete_mavat_data utility is used to repair missing data due to downtime, errors etc. or due to new data processing code being introduced. It is further explained here.
$ node bin/complete_mavat_data