Categories
javascript nodejs

Fastify and token authentication

We will be using Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens.

Categories
javascript nodejs

Javascript One-Liners

A few of my favorite JavaScript one-liners that can be used in your projects today.

Categories
couchdb nodejs

Working with NodeJS, CouchDB and Express Framework

This is a simple example of using node.js, nano (couch db modules) and the express framework to retrieve some data from a couch instance. Setting up the modules We will be using a couch instance from www.iriscouch.com. The database will be named “employees”. var nano = require(‘nano’)(‘http://lugomatic.iriscouch.com’); var db = nano.use(’employees’); We need to include […]