---
title: "Discussion on \"How we can create a simple webserver using node js\" | Hashnode"
description: "Discussion on \"How we can create a simple webserver using node js\". 📁 1️⃣ first we can create a simple file\nlets call it a server.js\n📁 2️⃣ first we can create a simple file\n// 1. Import the built-in 'http' module\nconst http = require('http');\n\n// 2. Create the server\nconst server = http.createServer((req, res) => {..."
url: "https://hashnode.com/posts/how-we-can-create-a-simple-webserver-using-node-js/680414c9e5326ac9bf9d0b58"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How we can create a simple webserver using node js](https://deepcss.hashnode.dev/how-we-can-create-a-simple-webserver-using-node-js?utm_source=hashnode&utm_medium=feed)

📁 1️⃣ first we can create a simple file lets call it a server.js 📁 2️⃣ first we can create a simple file // 1. Import the built-in 'http' module const http = require('http'); // 2. Create the server const server = http.createServer((req, res) => {...

Apr 19, 2025 · 1 min read · deepcss.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)

## Written by

[Deepanshu Agarwal](https://hashnode.com/@agarwal556)

@agarwal556

  
[View profile](https://hashnode.com/@agarwal556)

django developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
