This article wrote its own "Nodejs do Web Server A simple logic and implementation", if not too reasonable, or understand this part of the great God, welcome to shoot dead. Haha, novice.
I began to study nodejs,w3cschool yesterday and watched it again. Feel the content on it, and start by introducing the Nodejs module. It seems that later, even how to "create a Nodejs version of the Web server from scratch" did not understand. Perhaps it is too superficial, or, trapped in the wamp of thought, can not extricate themselves. Later in the Nodejs Chinese community posted a post. I feel like I understand a bit. Write it, hope to study together with you, but also hope to get the guidance of the Great God.
1:nodejs creates a: a Web service that listens on port 8888.
2:html file:
3: Browser access:
Process Analysis:
It is clear that the whole process, wamp thinking through always. There are front page aaa.html, no business processing, no database.
Write down this article, hope to see the great God, can reply to a few words: In the end Nodejs how to create a Web project?
Nodejs A simple logic and implementation of Web server