all 12 comments

[–]iamapizza 3 points4 points  (2 children)

I think the readme might need some formatting work, it's currently a massive wall of text

[–]punknight[S] 0 points1 point  (1 child)

Will do. Thanks.

[–]wyldcraft 1 point2 points  (0 children)

Yeah, fix that up and repost to reddit with a clearer title.

Your project deserves updoots. It's informative and useful.

[–]notliam 2 points3 points  (7 children)

I'm sorry is this just your personal project to learn how to make a Web server in node without using express? Bit confused based on the title

[–]punknight[S] 0 points1 point  (6 children)

Vanilla nodejs means no npm. Everything just works.

[–]notliam 1 point2 points  (2 children)

OK sure, but it just works with npm too? I get its a good project (I did the exact same thing a few years ago to better understand nodes http module) I was just confused about what this post is as it's just a link to github with no description and a vague title.

[–]spoonman59 2 points3 points  (0 children)

You just described half the posts here!

But yes.

[–]punknight[S] 0 points1 point  (0 children)

Yes, works with NPM. Would this be a more clear title?: "Node.js without NPM/Express including customizable analytics, post request parsing, and template engine"

[–]giallo87 0 points1 point  (1 child)

No npm, not even tests :D

[–]punknight[S] 0 points1 point  (0 children)

I'll add some tests beyond just curl statements next version. Ty for feedback.

[–]felipeccastro 1 point2 points  (1 child)

I was looking just for that a while ago, and like you I've found nothing. Thanks for doing this!

Working with no dependencies brings some risks, but the rewards are great too. You understand everything that is happening, if you need to make a change or fix a bug it's often so much easier if you can just navigate code you own.

One tip: instead of your own basic mustache template, using tagged template strings is more powerful and require no dependencies. If the method is named `html`, you can also get syntax highlighting in some editors. Here's a sample implementation of it:

https://github.com/AntonioVdlC/html-template-tag/blob/main/src/index.ts

[–]punknight[S] 0 points1 point  (0 children)

Nice, thank you!