Nodejs A simple logic and implementation of Web server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.