Closed Mimaaa closed 6 years ago
Good job ๐
nodemon
for production sites. In most projects, npm start
would be the command to start the project for production usage, while something like npm run dev
is used for development mode. I recommend leaving npm start
as is and adding npm run dev
for nodemon ๐ var isDead = true;
var age = isDead ? 22 : 'n/a';
But try to use them sparingly. IMO declawed: body.type === "cat" ? body.declawed === "yes" : undefined
is hard to understand
debug
to replace all the console.logs withconst
. Your whole server works without ES6 except for that one copied function. Also, it uses a comma operator
in the return, which is very hard to read. "Something went wrong"
is very very generic. You know exactly what went wrong there (the mimetype wasn't jpeg). Try to make the error message more useful by providing useful information.Bit too late, but thanks for all the feedback. Definitely going to try fixing everything up. ๐
It's not finished yet, but I learned quite a lot.
Things that I still want to do:
My Repo