About 373,000 results
Open links in new tab
  1. Node.js http.createServer() Method - W3Schools

    The http.createServer() method creates an HTTP Server object. The HTTP Server object can listen to ports on your computer and execute a function, a requestListener , each time a request is made. Syntax

  2. How to Build a Simple Web Server with Node.js - GeeksforGeeks

    Aug 14, 2024 · Creating a web server with Node.js can be done using the http module for a basic understanding or Express for more advanced features and ease of use. Both approaches highlight Node.js’s versatility in handling server-side tasks, making it …

  3. Creating Your First Backend with Node.js: Step-by-Step Guide

    Nov 5, 2023 · I will guide you step-by-step, and will walk you through the process of setting up your first Node.js backend, including creating a clean folder structure, defining a server using server.js...

  4. How To Create a Web Server in Node.js with the HTTP Module

    Apr 10, 2020 · In this tutorial, you will learn how to build web servers using the http module that’s included in Node.js. You will build web servers that can return JSON data, CSV files, and HTML web pages. Simplify deploying Node.js applications with DigitalOcean App Platform. Deploy Node directly from GitHub in minutes.

  5. Node.js Web Server - GeeksforGeeks

    Mar 17, 2025 · Create a file named server.js. Open server.js in your code editor and add the following code to create a simple HTTP server: Output. Run the server by using the below command. In this example. http.createServer (): Creates an HTTP server that listens for requests. res.writeHead (): Sends a response header with the status code 200 (OK).

  6. How To Create a Simple HTTP Server in Node? - GeeksforGeeks

    Feb 19, 2025 · To create a simple HTTP server in NodeJS, follow these steps: Begin by initializing your project using npm, which will create a package.json file to manage your project's dependencies and configurations. NodeJS includes a built-in HTTP module that allows you to create an HTTP server. Use the http.createServer () method to create an HTTP server.

  7. Creating a Simple Web Server in Node.js - Medium

    Jul 3, 2023 · In this article, we will explore the process of building an HTTP server from scratch in Node.js. We will dive into the fundamentals of working with HTTP and learn how to create a basic...

  8. 22. Creating a Node.js Server: A Step-by-Step Guide

    Nov 14, 2023 · In this guide, we walked through the process of setting up a Node.js project, creating a basic HTTP server, handling requests, and testing your server. This is just the beginning of what you can do with Node.js.

  9. Create Node.js Web Server - TutorialsTeacher.com

    In this section, we will learn how to create a simple Node.js web server and handle HTTP requests. To access web pages of any web application, you need a web server.

  10. Node HTTP - creating HTTP server and client apps in JavaScript

    Oct 18, 2023 · HTTP is a Node.js module which can be used to create HTTP server and client applications in JavaScript. Popular JavaScript frameworks including Express and HapiJS are built on top of the HTTP module. This tutorial teaches you the basics of HTTP interaction.

  11. Some results have been removed
Refresh