Closed nguyent047 closed 6 years ago
Hey @nguyent047!
Good job ๐
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) ๐
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?
Better? Not necessarily, but that way it's 100% sure you won't run into licensing issues ever ๐
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.
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.As for feedback, I don't really have much. Maybe that's because it's late.