lafayette-preserve-mock
v0.1.0
Published
lafayette-preserve-mock =======================
Downloads
5
Readme
lafayette-preserve-mock
An Express server used to mock responses similar to those from LafayettePreserve, a modified Hydra Head application for Lafayette College.
Usage
npm install --save-dev lafayette-preserve-mock
var server = require('lafayette-preserve-mock')
server.listen(3000, function () {
console.log('lafayette-preserve-mock running on port 3000')
})
Also included is a thin command-line wrapper:
Usage: lafayette-preserve-mock [options]
Starts mock LafayettePreserve server.
Options:
-h, --help Usage
-p, --port Specify which port the server will listen on (default: 3000)
This is useful for including the package within your project's package.json
scripts field.
{
"scripts": {
"dev-server": "lafayette-preserve-mock",
"test": "npm run dev-server --port=8081 & npm run tests"
}
}