Let's make sure our Express app has the required base modules:
# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon| // `unit` is `return` from Haskell | |
| // `bind` is `>>=` from Haskell, or `flatMap` from Scala | |
| var None = { | |
| bind: function (fn) { return this; }, | |
| unit: function (v) { return Option(v); }, | |
| getOrElse: function (elseValue) { return elseValue; } | |
| }; | |
| var Some = function (value) { |