Archiv der Kategorie: Java Script

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 , , , , , | Ein 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 (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 , | 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 (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

You don’t know JS

Here is a must-read: The „You don’t know JS“ book series, a deep dive into the core mechanisms of the JavaScript language.  The online version is free.

Veröffentlicht unter Java Script | Schreib einen Kommentar