Archiv des Autors: Sven Hasselbach

node.js, domino-db & Docker (13): Logging gRPC requests

For logging the gRPC requests you can use nginx as a reverse proxy. gRPC support was added in version 1.13.10. To install it locally on your Domino server (RHEL), open a terminal and do the following: 1. Identify which version … Weiterlesen

Veröffentlicht unter Allgemein | Verschlagwortet mit , | Hinterlasse einen Kommentar

node.js, domino-db & Docker (12): DominoDB and a big NO-NO?

Disclaimer: This is a response on Heiko’s post about his security considerations with the domino-db module. It is good to have such a discussion, and hopefully this discussion will go on. This is my personal view on this topic. If … Weiterlesen

Veröffentlicht unter Security | Verschlagwortet mit , , | 2 Kommentare

node.js, domino-db & Docker (11): Usefull Docker Commands

Building Images docker build -t domino-express . Creates a new docker container named domino-express, using the current folder („.“). Starting / Stopping docker run –name dominoexpress -p 3000:3000 -d -it domino-express Starts the image domino-express, allows access to port 3000 … Weiterlesen

Veröffentlicht unter Docker | Verschlagwortet mit | Hinterlasse einen Kommentar

node.js, domino-db & Docker (10): Protecting Proton Keys

Before we are looking into the details how to setup a non-anynomous connection to Domino’s Proton server, I have an advice for protecting the key files required for the connection. The keys are not password protected, and this is a … Weiterlesen

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

node.js, domino-db & Docker (9): Global Configurations

The database configuration should not be changing during the different requests, that’s why it is a good idea to store the configuration in a central place of our express application. There are multiple ways of doing this, e.g. you can … Weiterlesen

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

node.js, domino-db & Docker (8): Security

Security is a big topic when developing node.js applications. A simple helper for writing secure code is the eslint-plugin-security plugin. It checks for common mistakes during writing code, for example using the eval statement with external input, or unsafe RegEx … Weiterlesen

Veröffentlicht unter Java Script, node.js, Security | Verschlagwortet mit , | Hinterlasse einen Kommentar

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 , , , | Hinterlasse 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 , , | Hinterlasse 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 , , | Hinterlasse 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 , , , , | Hinterlasse einen Kommentar