bb-http-server_node
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