wesonweb / houseyourplants_app

0 stars 0 forks source link

Plant form validation #14

Closed wesonweb closed 5 months ago

wesonweb commented 9 months ago

Form to add plants to the database

Image storage

Front end

Back end

Screenshots

Completed the form using a test plant and an image of a spider plant. The image was sent and stored in Cloudinary:

cloudinaryStorage

Console log of the res.json(newPlant) received in the front end resJson-response

tested on Postman to GET all plants from MongoDB - screenshot shows the spider plant

postmanGET

MongoDB screenshot confirming plant is there mongoDB

wesonweb commented 9 months ago

Next I need to look at the 'plant problems' section of the form as it needs to be dynamic ie there may be no problems so it can be ignored or several problems can be added dynamically. The schema has it as an array of strings. Also need to check for accessibility and see if there are any refactors I can make on the code.

wesonweb commented 5 months ago