2.1.0 • Published 4 years ago
sigdwebserver v2.1.0
README
- NodeWebServer is a lightweight Web server based on Node JS.
- Version: 2.1.0
- https://sigdoyon.ca
Release notes
- The root folder for sites can now be set in Configuration.json file. By default, "sites" is set to "./sites/".
Setup
- Install Node JS. (Version 12.8.2 is recommended.)
- npm install sigdwebserver.
- Set environment variable passphrase. For example, in PowerShell on Windows, type $env:passphrase='your_pass_phrase'. Replace your_pass_phrase by the password of your secure certificate file.
- An autosigned test certificate for HTTPS protocol is included in this package. The default password phrase of this certificate is "test". This certificate can be used for development. However, it should be replaced by a valid production certificate (see files key.pem and cert.pem located in root folder).
- The server is launched using node: node .\devserver.js.
- To test the server, launch a Web browser and type the URL : https://localhost. The test page index.html should display.
- Web sites sigdwebserver is serving must be located in the ./sites/ subfolder.
Contribution guidelines
- Unit tests are written using Jasmine and are located in "/spec" folder.
- To run tests, use : npm test from "/spec/" folder.
- Please refer to https://jasmine.github.io/ for more information about running unit tests using Jasmine.
Written for your convenience by
- Les Solutions Informatiques Gabriel Doyon
- Contact: sigdoyon@gmail.com.