Skip to content

broadwayinc/basic-node-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-node-server

Basic node server for everyone.

Basic node server simply hosts and serves files from the current project directory through HTTP. If no path is given, it will serve the index.html file.

How to use

node bns [port]

The [port] argument is optional. If no port is given, it will default to 3000.

For example, if you want to serve the current directory on port 8080, you would run:

node bns 8080

NPM

This package is also available on NPM. To install it, run:

npm install basic-node-server

Then, you can run it from your project directory:

node node_modules/basic-node-server/bns [port]

About

Simple node server for everyone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published