Archiv der Kategorie: ES6

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 , , , , , | 1 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 , , , | Schreib 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 , , , | 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 (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