Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aldy505/polka-http2
Simple HTTP2 app with Polka for the router and handler and such.
https://github.com/aldy505/polka-http2
Last synced: 17 days ago
JSON representation
Simple HTTP2 app with Polka for the router and handler and such.
- Host: GitHub
- URL: https://github.com/aldy505/polka-http2
- Owner: aldy505
- License: mit
- Created: 2021-11-11T03:42:37.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-11T03:42:52.000Z (about 3 years ago)
- Last Synced: 2024-10-12T16:12:52.162Z (about 1 month ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple HTTP2 app with Polka for the router and handler and such.
To generate your own PEM SSL certificates:
```sh
openssl genrsa -out ssl/server-key.pem 4096
openssl req -new -key ssl/server-key.pem -out ssl/server-csr.pem
openssl x509 -req -in ssl/server-csr.pem -signkey ssl/server-key.pem -out ssl/server-cert.pem
```Run it:
```sh
# Development
npm run dev# Build
npm run build# Production (build first!)
npm run start
```Then visit `https://localhost:3000` on your browser.
If you got a warning saying the site is not secure, just bypass the warning. It's secure.