janet-chen / angular-http-server

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

License:Apache License 2.0


Languages

Language:HTML 100.0%