node-hostme

0.1.13 • Public • Published

node-hostme

A simple and lightwight node package that can host a local website serving static file requests on any of your folders and can proxy API service requests to remote server, which is very useful for API driven front-end development.

Intall Package

$ npm install -g node-hostme

Host Static

$ cd /some/folder
$ node-hostme -p 3000

If -p not specified, default to 3000.

Host with access to API server

$ cd /some/folder
$ node-hostme -p 3000 -s uat.example.com

So that, if request not found on local server will be forwarded to uat.example.com

Then you will be able to access your website

http://localhost:3000

Readme

Keywords

Package Sidebar

Install

npm i node-hostme

Weekly Downloads

0

Version

0.1.13

License

MIT

Last publish

Collaborators

  • tristanguo