Istanbul Code coverage – TypeScript with Express on Node js


Needed pacakges: npm install mocha chai istanbul remap-istanbul typescript   Config in package.json : { "name": "express", "version": "0.0.0", "private": true, "scripts": { "start": "node ./dist/www", "build": "tsc -w -p .", "build:ubuntu": "sudo tsc -w -p .", "build:CI": "sudo tsc -p .", "install:global:dependencies": "npm install -g typescript && npm install -g nodemon && npm install … Continue reading Istanbul Code coverage – TypeScript with Express on Node js

Get started with typescript, express and test


At the end of this post, you will have your web app up and running locally in your dev environment. Pre-requisites Before you get started, ensure that you have the following dependencies in place Git Node js NPM Visual Studio Code (or any other editor of your choice) Lets get started Create a new folder … Continue reading Get started with typescript, express and test

Authenticate a Node.js API with JSON Web Tokens


Code #Introduction Authentication is one of the big parts of every application. Security is always something that is changing and evolving. In the past, we have gone over Node authentication using the great Passport npm package. Those articles used the session based authentication however, which has problems when we talk about scaling web services and … Continue reading Authenticate a Node.js API with JSON Web Tokens