bb-http-server

0.0.8 • Public • Published

bb-http-server_node

version node npm

This is a simple HTTP server runs on nodejs.
Web contents such as "http://host/index.cgi.js", are operated as CGI on nodejs.

Image

      request
USER ----------> http://host/<path>
                  |
                  | map
       response   v
USER <---------- ${dirname}/public/<path>  // if the path ends with ".cgi.js", the script file is operated.

Demo

$ git clone https://github.com/takayoshiotake/bb-http-server-sample_node.git bb-http-server-sample
cd bb-http-server-sample
$ npm install
$ npm start

Access http://127.0.0.1:8080

/bb-http-server/

    Package Sidebar

    Install

    npm i bb-http-server

    Weekly Downloads

    3

    Version

    0.0.8

    License

    ISC

    Last publish

    Collaborators

    • bigbamboo