This tutorial covers how to build an HTTP Server with Node as well as everything you need to know about the HTTP Request object that will be received by the server. How to handle Querystrings as well as POST data is also covered.
Starter Code GIST:
Starter Node Web Server video:
Node HTTP reference:
NPM formidable module:
Nguồn: https://indiancinema-analysis.com/
Xem thêm bài viết: https://indiancinema-analysis.com/category/cong-nghe
Formidable !! Great way to teach and make everything looks so simple. Thanks!
Hi Steve,
node v12.11.1
res.write(util.inspect(path.query));
Gives besides the query object also
[Object: null prototype]
To get the pure object I did
const queryToString = JSON.stringify(path.query);
const queryObject = JSON.parse(queryToString);
Any other ways to do it are welcome, but for some reason albeit I replicated the code line-by-line, I got a different result than you.
Which was even more interesting, but noting it in case anyone else experiences the same.
Peace!
I don’t see the link to the previous video in the description but I am not sure 🤔 maybe it’s me or I will go look into the list of videos
This is pretty interesting I had a rough understanding of everything but now my knowledge is more polished but the formidable package is way useful I am happy to know about it !!!
Great video! Easy to understand and very useful, good job!
Can we somehow talk? PS the tutorials are real quality and awesome.
Another amazingly useful tutorial! Thanks.
Now this (tutorial) was Awesome!
Thanks!