Skip to content

copperleaftech/angular-http-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular-HTTP-Server

Should work with any Single Page App frmaework that use a router to change the URL

Rationale

Very simple server that returns a file if it exists, or 'index.html' otherwise (i.e. when the url requested is actually a SPA route).

Other simple http-servers (correctly) give a 404 when you try to refresh your browser for a page that is a route on a client side app.

To use:

npm install -g angular-http-server
cd /path/to/site
angular-http-server

And browse to localhost:8080.

Feedback via: https://github.com/simonh1000/angular-http-server

To develop

http://justjs.com/posts/npm-link-developing-your-own-npm-modules-without-tears

About

Simple http-server for single-page apps (SPAs)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%