Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 430 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 430 Bytes

Simple NodeJS WebServer

Simple NodeJS WebServer running from a single file

Usage

Simply run it with:

node server.js

And it will use hardcoded port and hostname. To define something else, simply define these environment variables:

# Define environment variables
NODE_WEB_HOST="your-hostname"
NODE_WEB_PORT=7000

# Start the server
node server.js

Author