This repository contains a basic NodeJS server useful for demonstration purposes. The served webpage will connect to GitHub’s Octocat API endpoint and return the Zen quote of the day.
Relevant packages used in this setup:
- pug (templates)
- mocha / nyc / codecov (unit tests with coverage report)
There are some built-in unit tests to ensure that everything can be verified.
Please fork this repository and ensure you have a local working copy. You will need a working NodeJS environment. Get the latest stable version from https://nodejs.org/en/download/ or via your OS package manager (e.g.
brew on Mac or
chocolatey on Windows).
npm install npm run test npm run lint [optional] npm run report-coverage
Run server (defaults to localhost:3000):