Skip to content

About

Pure Javascript HTTP Server based on Node.js from scratch. Zero libraries, zero dependencies

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-server-node-js

Pure Javascript HTTP Server based on Node.js from scratch.

Zero libraries, zero dependencies, zero ChatGPT, 100% man made and DIY.


This is my original Node.js JavaScript solutions to the "Build Your Own HTTP server" Challenge.

progress-banner

HTTP is the protocol that powers the web. In this challenge, you'll build a HTTP/1.1 server that is capable of serving multiple clients.

This server is made only on top of native Node.js 18 API, except for its builtin HTTP Server, meaning that it is a pure TCP server, and it can parse and serve concurrent HTTP/1.1 requests, and more.

As a zero dependency node.js app (ie a purely naked script), it does not need any package.json file.

Just launch it by

$ node app/main.js [--directory <staticFilesDirectory>]

Pretty frustrating to have to write that in JS for Node.js (CommonJS)...

I may be tempting to rewrite it in TS for Bun. To be continued...

About

Pure Javascript HTTP Server based on Node.js from scratch. Zero libraries, zero dependencies

Resources

Stars

4 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages