corypride / diamonddogs

Project for LaunchCodes' Liftoff Program
MIT License
2 stars 3 forks source link

Favorites saving and browse through species list #20

Closed rastylus closed 6 months ago

rastylus commented 7 months ago

Phew. Okay, so I finally figured out how to save the species id alongside the user id into the favorites table. I'd still like to figure out how to return an error or message to the user if they've already saved a plant, but for now it's just sending a 500 error if mysql denies the request(i had to set up a unique index but I'd like to try to figure out how to manage this from java).

Also, the browse screen has a skeleton layout for looking through the plant list and the next page and previous page button are working. I think this could be a good starting point for searches, but I haven't looked at the other queries yet.