Closed deannabosschert closed 6 years ago
Just realized that it might be handy to add the readme.md aswell, oops.
How I did the assignments is in the howto.md file, although I fixed some things afterwards so it might not be as accurate as first.
Hey @deannabosschert! Could you send use the link to your repo? 🙂
Yes of course! Quite stupid of me heh, completely forgot. Sorry for the late answer..
Hey well done @deannabosschert! And congrats on the prise you won! 💪 When are you going to Istanbul?!
For startes: you handed this in after the deadline, so no points, but I’m happy to give feedback!
foo `bar`
(where bar
is inline code), instead of three. Three ticks are used for block code https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#codenotFound
function, and the following get
code, it looks like notFound
is never called for unfound animals. In get
, you already send the correct error back (with the template error.ejs). You can use a .use(notFound)
at the end of the stack to catch not found errors and such, but those a) relate to unmatched routes (try going to /foo/bar) or the use of next()
in the handler for /:id
animalExists = db.has(id)
(has checks if the id exists). When it does, use db.get(id)
to actually add the animal to result
db.has(id)
. It throws when the id given to it is not okay, in that case you catch it, and respond with a 4* error! But it looks like your catch-all notFound* also deals with that?!body-parser
, it gets added to package.json
, which means that people who later do npm install
on your code, also get body-parser
included! They don’t need to do that themselves!18646
, doesn’t the database take care of the identifier automatically?<label>Title: <input name=title></label>
, that way you don’t need for
and id
to link them together, and you can label { display:block }
do you don’t need <br>
s either! In fact, you didn’t use id
s on inputs. One of the cool thing of labels is that you can click on them, and they’ll focus on the corresponding input, but that only works with for
/id
!description
should probably be a textarea?http://localhost:1902/form
I don’t see the form 🤔 And there’s no link to the form either?!Anyway, great start Deanna!
This whole assignment in one phrase: 'I tried'.
Lots of things are probably still not working, such as adding animals via the form; kind of really lost it there. Tried to do all of the bulletpoints but it just isn't working and I don't know where to check or where to start fixing.
The assignment itself is good though, I like how it's set up. It's only very, very difficult to do so if you don't have any experience with the whole subject. My main struggle was not knowing where to start, e.g. with the form. I know it's from lack of knowledge but then, I still wouldn't know what to dig in first to keep up with it.
I finally opened this issue because I really want to get on with the Storage assignment and hope the Shelter assignment is done at least well enough to actually be able to start/finish Storage.
Sorry for the late issue/finish with Shelter, I've gotten sick in the week before and had some other issues along the way. Only curious about what I can still fix of Shelter though!
https://github.com/deannabosschert/shelter