cmda-bt / be-course-17-18

๐ŸŽ“ Backend ยท 2017-2018 ยท Curriculum and Syllabus ๐Ÿ’พ
Other
47 stars 19 forks source link

Listing assignment #524

Closed nguyent047 closed 6 years ago

nguyent047 commented 6 years ago

Hereby I present you the polar bear server.

I actually quite enjoyed this exercise, even though it took me longer than 5 hours and, once again, I'm wondering if I did it right. There are some things I would've done differently if I had more time, though.

  1. When using curl localhost:8000/images/avatar.png --verbose --request GET in Terminal, it gives a neat response, including 200 OK and content-type... yet after that the screen fills up with loads of characters. I still haven't figured out why yet, but it kind of annoys me.
  2. I added two style.css files to this project, both have the same content. It's a bit messy, I'm planning to fix it soon.
  3. I would have loved to add a license, .gitignore, package.json etc., but I don't think I want to be sleep deprived any longer. I might add them another time.

As for feedback, I don't really have much. Maybe that's because it's late.

rijkvanzanten commented 6 years ago

Hey @nguyent047!

Good job ๐Ÿ˜„

Feedback

Repo

Code

Just to make sure, are those images licensed to be used in this way or did you make them yourself? You uploaded them to a public file repository, which the original author probably doesn't like (if they aren't yours) ๐Ÿ˜…

nguyent047 commented 6 years ago

Hey @rijkvanzanten

Thanks for the feedback! I agree. The assignment should've specifically asked for my server.js to read the directory if they wanted me to do so after all. ๐Ÿ˜„

The images are from Freepik. Freepik is a search engine for free vector designs, though I have to credit the author of the illustrations (which I have done now, sorry, that totally slipped my mind ๐Ÿ˜…). Do you think it might be better if I create my own images instead?

rijkvanzanten commented 6 years ago

Better? Not necessarily, but that way it's 100% sure you won't run into licensing issues ever ๐Ÿ™‚