This is a project which makes use of the domino-nsf package from npm (the source of which is nthjelme/nodejs-domino on GitHub).
It creates a Node + Express app which reads, using the user's client Notes session, a given NSF's given View or given Documents, returning JSON formatted data.
You must have IBM Notes installed and a properly configured Notes ID, with permissions to the NSF. The dependent domino-nsf
package, which does the heavy lifting, still creates a Notes/Domino session, utilizing the C++ API.
This currently requires Node v5, 32-bit arch. If you're a v4 LTS hold out like myself, installing and using nvm-windows (a Windows version of nvm) is fairly easy and efficient to switching versions.
- run from a machine with a working Notes installation (tested with Notes 9.0.1 FP5 on Windows)
- clone down a copy of this project from GitHub
git clone https://github.com/edm00se/express-domino-nsf.git
- change the database and server properties by either
- changing their values in
config/index.js
or - setting the
DOM_SRV
andDOM_DB
environment variables, respectively (they will be picked up by the Node server instance)
- fill in your endpoint usage instructions to the
public/readme.html
file - install dependencies, via
npm install
- run the server instance via
node server.js
(ornpm start
); the port it will run on is either from what it receives in thePORT
environment variable or it will default to port3333
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- Nils Tarjei Hjelme, aka- @nthjelme for creating the domino-nsf package
- the dominonodejs chat on OpenNTF Slack
The MIT License (MIT)