Skip to content

Express webserver module for http request and static files.

Notifications You must be signed in to change notification settings

Rapidfacture/rf-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rf-http

A express webserver module.

  • static webserver
  • tries to use 'rf-log'
  • CROS origin requests enabled
  • body parser till 50 mb
    • raw
    • json
    • urlencoded

Getting started

npm install rf-http

var http = require('rf-http').start({
   pathsWebserver: 'dest',
   port: 3000
});


// the webserver is running on port 3000 using folder 'dest' as root
// user express 'app' for further things like
// adding middleware, websockets, etc.


/* http holds
{
 app => express app
 server => reuse the server for websocket
}
*/

About

Express webserver module for http request and static files.

Resources

Stars

Watchers

Forks

Packages

No packages published