A simple, zero dependency, Node.js HTTP2 server for development projects.
HTTP2 Server uses Node's HTTP2 module to securely serve local files.
Requests with no extension are optionally checked for with a .html
extension.
The versions listed for these prerequisites are current at the time of writing.
While more recent versions are likely to work, your mileage may vary...
-
Add HTTP2 Server as a developer dependency in your current web project:
npm install tforster/http2-server --save-dev
-
Create a self-signed certificate in the project root:
sh node_modules/http2-server/scripts/create-certs.sh
-
Start the local development server:
node node_modules/http2-server \ --root $DIRECTORY_ROOT \ --cert $DIRECTORY_CERT \ --port $PORT \ --extensions true # set to true to look for files with .html
To contribute to this project, please see CONTRIBUTING.md
.
All released versions are available as
tags on this repository.
To view the release notes for all available versions, please see
CHANGELOG.md
.
This project is licensed under the MIT License, please see
LICENSE.txt
.
Created by tforster.
Based on code by webdivelement.
Maintained by tforster and
webdivelement.
View the GitHub repository or the list of contributors for this project.