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 jquery

Dynamic Link Tag Injection

Using jquery to inject a style sheet seems to break IE7/8. The scenario was when a user passed in a custom param via the URL the code would inject that particular css. Ideally I should have gone with the native javascript way to create the element since it’s still clean and simple. This may not […]

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 […]