Closed timruiterkamp closed 6 years ago
Heya! Well done ๐
shelterName
-> shelter_name
TEXT
for all string based values. TEXT is by design huge in terms of storage. You might want to consider changing most fields to a more appropriate data type. (F.e. you know Animals.type
only accepts three values (dog
, rabbit
, cat
), so that could've been an ENUM)null
as a value. As an extra form of security, you might want to disable that, so SQL will throw an error if a field is missing.package.json
body-parser
is in devDependencies
, but should be in dependencies
)readme.md
(By choice i would recommend using dotenv for this).
You already implemented dotenv
, so you could also opt to add a .env.example
file (with fake credentials) to make it extra easy for the user to get started :)
server/index.js
db
package. Seeing you now use mysql
, that one got deprecatedanimal
function.jpg
extension to all uploaded files, but there is a chance that the uploaded files is not a image/jpeg
db.removed()
was by design here, was it? ๐
Hi There ! Here is the link to my repo
It was a good assignment to get to know mysql and the possibilities of mysql. I had a bit of a slow start by the setup of mysql but after trying out adding databases and setting up tables the progress went quite smooth. I finally fixed the image uploading so that's one thing i'm quite happy with and that i've got to understand a bit more of setting up databases and joining their information.
Overall yet another good assignment.