https://github.com/lastmjs/single-page-http2-server
https://github.com/lastmjs/single-page-http2-server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lastmjs/single-page-http2-server
- Owner: lastmjs
- Created: 2016-09-24T06:44:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-17T03:24:09.000Z (over 8 years ago)
- Last Synced: 2025-01-19T22:48:34.293Z (5 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository will no longer be maintained. It has been replaced, with many improvements, by Zwitterion: https://github.com/lastmjs/zwitterion
This is a simple development server built to work with HTTP2 and server rewrites for single page applications. Whenever a static asset is not requested, the server will redirect to `index.html` in the current working directory of the server. A pre-generated SSL key and certificate are included, since this is meant to be a development server run on `localhost`.
# Installation
npm install --save-dev single-page-http2-server# Usage
The server root is the directory the server is called from.From the commandline:
```
node_modules/.bin/single-page-http2-server
```As an NPM script:
```
{
...,
"scripts": {
"start": "single-page-http2-server"
},
...
}
```Follow these instructions if you need to regenerate the SSL key or certificate: https://gist.github.com/sl4m/5091803