Yeoman generator for creating a locally hosted HTTPS site using Node.js.
There are many options for creating a locally hosted HTTP site, but HTTPS is another matter. This generator simplifies this.
Initially it will create the
server.js for you and provide instructions on how to create a self-signed certificate and configure your development environment to trust the certificate.
In the future it will prompt you to provide the certificate & key for a commercially acquired certificate, or it will create & trust a self-signed certificate for you.
generator-nodehttps globally using NPM:
$ npm install -g yo generator-nodehttps
Make a new directory and
cd into it:
$ mkdir my-new-https-site && cd $_
$ yo nodehttps
Follow the instructions at the end of the generator for configuring the SSL certificate following these instructions: Configure Express with SSL Certificate for HTTPS Development on OS X.
Test the generator by running:
$ npm test
Recent changes can be viewed on Githb on the Releases Page