Added the ability to draw on the canvas. Also adjusted the dimensions of the canvas so it would look better.
Added the ability to select brush size, brush colour and erase or clear the drawing.
Added the ability to submit the drawing when clicking the submit button. This will save the drawing in the database.
Changed the database to store the drawing data as a string instead of blob, so that it is easier to save and retrieve.
Added a redirection to the home page when the user clicks the quit button.
Tested the frontend to make sure all drawing controls worked.
Tested whether drawing entries were saved correctly in the database (see image below)
Checked the table had no entries
Submitted a drawing, then checked the table had one entry
Inspected the drawing submitted to view the drawing data (the binary data of the drawing is encoded in Base64 and displayed as an ASCII string)
Change Form
[x] The pull request title includes issue number and description.
[x] The work done is summarised above.
[x] The code is commented and well formatted.
[x] Testing has been performed and documented above.
Other Information
There appears to be a bug in the function that retrieves the date and time now. I submitted a drawing at 7:30PM on 4th of May 2024, however this is the time that was saved:
Input validation still needs to be completed, and user state and authenticaton needs to be included.
References #14
Change Summary
Change Form
Other Information