/Simplest-Webserver

Node.js webserver written in 3 lines of code.

Primary LanguageHTML

Simplest-Webserver

Node.js webserver written in 3 lines of code.

Install 'connect' and 'serve-static' after cloning:

npm install

To start the server run the command:

nodejs server.js

And goto http://localhost:8080/

To edit the default web content by changing the files in 'server-dir'.

Edit line 3 of server.js to change the default port (8080) and server content location 'server-dir'.