pvepamb1 / Alvis

A home automation application
0 stars 0 forks source link

Plethora of modifications #1

Closed pvepamb1 closed 5 years ago

pvepamb1 commented 5 years ago

This should've been about 100 commits individually. Simply figuring out a scalable, secure, user and dev friendly design with minimal network congestion and db calls wired my brain to not commit for some weird reason. With that out of the way, let's get going now. Here's the list of changes:

A db.properties files, placed in the same level as the final .jar overrides the default db props [used to satisfy Travis CI]. Without providing one, the application is almost certain to fail booting.

A POST request to '/save' containing name and mail credentials will store the credentials in db.

The service layer includes the usual methods among which the 'updateEmail' method conditionally updates the mail address to use based on key 'dbuser' in db.properties.

The method to delete user is intentionally not exposed as end-point for security purposes.

Whew! While this list is not an exhaustive indication of every single modification, it covers the gist of it. Will be adding comments in code very soon to help expand further.

And now to pray Travis builds and deploys without issues, which requires an absolute miracle at this point!