Oliver’s Status Report – 19 Mar 2022

I did not make as much progress this week as I had planned for due to an illness from Wednesday (Mar 16) till Saturday (Mar 19). However, despite that, I did manage to get some work done and achieve the progress we needed this week to keep us from falling behind.

Specifically, I brought the back-end API online on a server connected to the Internet, allowing for integration process with the front-end and the Jetson to begin. For example, calls to the API can now be made as follows:

$ curl -u "<secret key redacted>":"" -d "" https://fresheyes.oliverli.dev/item/2/
{"id":2,"name":"Apple","shelfLife":7,"unit":"piece","itemExpiry":[{"expiry":1648050152638,"quantity":5},{"expiry":1648351218448,"quantity":2}]}

This fetches all details for items of ID 2, which in our example here consist of apples. This data, including the expiration dates, are all returned in JSON format which can be easily parsed by a JavaScript front-end and presented to the user visually.

I also implemented enough remaining API endpoints to enable us to begin the integration process meaningfully. Specifically, there are now API endpoints analogous to CRUD – create, read, update, and delete, the 4 essential operations on the various resources. Although the back-end is still incomplete, this means that my focus from now on is the key application logic instead of lengthy boilerplate, which should progress substantially faster. I will also be working on the front-end integration together with Alex, so as to speedily unblock his work and enable him to continue with the front-end.

Besides the code, I also worked on the ethics assignment this week. Thinking about the ethical implications of the project was a new and interesting take, since I did not initially think this project could raise any ethical concerns at all. However, thinking critically, there were indeed aspects of personal data collection that can become problematic, making the ethics assignment an enlightening endeavor all things considered.

Leave a Reply

Your email address will not be published. Required fields are marked *