https://github.com/janluksoft/node_http_server
Node.js: a simple http server without libraries
https://github.com/janluksoft/node_http_server
http http-server javascript node nodejs
Last synced: about 1 year ago
JSON representation
Node.js: a simple http server without libraries
- Host: GitHub
- URL: https://github.com/janluksoft/node_http_server
- Owner: janluksoft
- Created: 2024-01-20T14:29:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T14:32:57.000Z (about 2 years ago)
- Last Synced: 2025-01-13T21:44:56.174Z (about 1 year ago)
- Topics: http, http-server, javascript, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js: a simple http server
## Description
Node includes a built-in [http] library that, when launched, acts as an http server. After starting node, it does not stop working, but works in the background as a backend server, as a [Node.js JavaScript Runtime] process. The server responds to queries from web browsers on the defined port 3000. Returns the HTML page defined in the method: [response.end('....');] to the browser.
This is an example of a very simple server that works;
This text comes from the node server and is shown in the browser frontend.
.

## Install
Start the node server with the command: "node app4_http.js".
In your browser, enter the address: "http://localhost:3000/"