R
R
rundll322020-12-24 04:25:32
Node.js
rundll32, 2020-12-24 04:25:32

The simplest site on Node.js?

Good afternoon! I am learning JS, and I was pleasantly surprised that HelloWorld on the node does not look so complicated, unlike my native sharp with ASP. Previously, I had little experience in PHP, I usually had such a minimum as a database + include, but the language itself scared me away, but now it’s not about that. When I read articles about a node, everything quickly seems to take off right off the bat, express and other things are connected, with little explanation of why this is. And now I want to just create a site for myself with a simple database, showing pages received via $_GET['page'] as it would be in PHP, but I can not find anything on creating simple sites without a ton of dependencies on NPM packages.
I apologize for such a presentation of the question, I hope it is more or less clear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WbICHA, 2020-12-24
@WblCHA

So it will be the same hello world, only you send html instead of text.
Actually, the base server: https://nodejs.org/en/knowledge/HTTP/servers/how-t...
And http documentation: https://nodejs.org/api/http.html

I can't find anything about building simple sites without a ton of dependencies on NPM packages.

Because now you can’t go anywhere without them and you need to be able to work with popular libraries and frameworks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question