A simple nodeJS server that serves any file in its local directory or sub directories.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
server.js

README.md

static-nodejs-server

Description

This is a simple server that just serves whatever is requested back to the requester.

Should send the files back with the correct mime-type, but if the type isn't specified in the list, it will return it as application/octet-stream

Usage

  1. Install nodeJS
  2. From your web directory, run

    node ../path-to-static-nodejs-server/server.js