Archiv des Autors: Sven Hasselbach

node.js, domino-db & Docker (7): The ValueHolder

I am using this for years in Java, so I thought it would be great to use this approach also in the JavaScript world: The ValueHolder. The class allows to easily define „cachable“ code and it’s result, without having to … Weiterlesen →

Veröffentlicht unter ES6, Java Script, node.js | Verschlagwortet mit , , , | Schreib einen Kommentar

node.js, domino-db & Docker (6): Using memcached

mem.js I am using mem.js as client library for accessing memcached. To use it, the first thing to do is to add the requirement to your package.json: npm install memjs –save MemcachedFactory Then we can create a simple helper class … Weiterlesen →

Veröffentlicht unter ES6, Java Script | Verschlagwortet mit , , | Schreib einen Kommentar

node.js, domino-db & Docker (5): memcached

To use memcached in our Docker container, we have to modify the existing Dockerfile a little bit. First it is required to install memcached in the container itself, and then it is required to change the CMD command to start … Weiterlesen →

Veröffentlicht unter Docker, node.js | Verschlagwortet mit , , | Schreib einen Kommentar

node.js, domino-db & Docker (4): Error Handling

When we started our express application and accessed it in the browser, an error raised on the console and no response was sent back to the browser. The reason for this behaviour is that the database connection is not correctly … Weiterlesen →

Veröffentlicht unter Java Script, JSX, node.js | Verschlagwortet mit , , , , | Schreib einen Kommentar

node.js, domino-db & Docker (3): Adding domino-db

The express application is still the boilerplate created by express generator. Now let’s look into the existing code and use the domino-db package. First we have to understand express a little bit better. I won’t go deeply into details, because … Weiterlesen →

Veröffentlicht unter ES6, Java Script, node.js | Verschlagwortet mit , , , , | Schreib einen Kommentar

node.js, domino-db & Docker (2): Dev Environment

Before we can start to create a new app we first have to setup a development environment. While there are multiple IDE’s around, I have made most of my node.js development with Atom instead of an IDE like Eclipse or … Weiterlesen →

Veröffentlicht unter ES6, Java Script, node.js | Verschlagwortet mit , , , | Schreib einen Kommentar

node.js, domino-db & Docker

Here is an example to create a express application with the new domino-db npm module and run it in a docker container. Requirements are that node.js & Docker is installed. Everything is done in the command line and a text … Weiterlesen →

Veröffentlicht unter ES6, Java Script, node.js | Verschlagwortet mit , , | 7 Kommentare

Dropping Domino’s HTTP task (3): WebSSO Integration (Part 1)

To integrate the new HTTP stack into the existing environment, we can use LTPA tokens. These tokens are cookies which store the authentication information and allow to share them betweeen different participating Domino servers. A users must log on only … Weiterlesen →

Veröffentlicht unter Java, Server, Web | Verschlagwortet mit , , , | Schreib einen Kommentar

Dropping Domino’s HTTP task (2): Running in User Context

To use the approach as an alternative to Domino’s HTTP task, we need support for the different user contexts, because using NotesFactory.createSession() just creates a session for the current Notes ID used. This goal can be achived by using the … Weiterlesen →

Veröffentlicht unter Java, Server, Web | Verschlagwortet mit , , , | 5 Kommentare

Dropping Domino’s HTTP task

Instead of waiting for updates of the Domino HTTP task any longer I was thinking about how to use modern HTTP technologies on top of Domino. But instead of implementing it in the Domino stack, I think I found a … Weiterlesen →

Veröffentlicht unter Java, Server, Web | Verschlagwortet mit , , , , , | 8 Kommentare