ioserver-http
v1.0.1
Published
Simple server for static page service
Downloads
4
Maintainers
Readme
IOServer-HTTP
Simple HTTP(S) server for usage with IOServer.
This will launch a server on port specified (default: 8080) and will listen for all GET requests. This is particulary useful with static content. For dynamic support like PHP and more advanced usage (POST/PUT/etc...) please have a look at Express and/or specific web server like Nginx.
Install
Install with npm:
npm install ioserver-http
Basic Usage
Require the module:
IOServerHTTP = require 'ioserver-http'
Instanciate object:
server = new IOServerHTTP
share: '/var/www/html'
Start the server...
server.app.listen('127.0.0.1', 8000)