Skip to content

philspitler/spa-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SPA Host

npm version

Easily host applications that have a default file to route requests through, yet need to override a set of folders

Installation

$ npm install -g spa-host

Run in the root of your project

$ spahost index.html styles scripts

This will run a server which routes all traffic to index.html unless it starts with /styles or /scripts.

Run on a specific port (5000 in this case)

$ PORT=5000 spahost index.html styles scripts

Same as above but on port 5000.

About

A simple web server to host single page applications (SPAs)

Resources

Stars

Watchers

Forks

Packages

No packages published