Category: Nodejs

  • Hapijs – Adding Routes in HapiJs

    In this blog, we will learn how to Adding routes in Hapi. Steps. – Define the path. – Define the method. – Define the handler. let’s see an example of it [cc lang=”javascript”] var Hapi = require(‘hapi’); var server = new Hapi.Server(); server.connection({ port: 3000 }); server.route({ method: ‘GET’, // define the method path: ‘/’, […]

  • Hapijs – Plugins

    hapi has dozens of plugin system. like , Authentication, Documentation, Localization/Internationalization, Logging/Metrics, Messaging, Security, Session, Templating, Utility, Validation…. – you can write your own plugin. – plugins are objects with a register function, and has a signature function (server, options, next). – register function has an attributes object. – this object provides some additional information […]

  • Node.js tutorial – How to use Request Module

    In any application framework, one basic need is to be able to make REST calls over HTTP/HTTPS as they are widely used and a very handful in case of API interactions, web scraping, etc. We can use the NodeJS core modules or http https to perform these calls but that is a bit cumbersome process and […]

  • Setup an environment for working with react.

    In order to setup an environment for working with react we can use the create react package. To install create react package. npm i create-react-app -g After installing crate-react-app package, genrate simple react app by using following command. create-react-app <dir> example:-create-react-app first-react-app This might take a couple minutes. cd first-react-app Start the app:- npm start […]

  • How to use paytm in your website to add money to your wallet using javascript.

    Paytm wallets are used in almost all the websites we encounter these days. Also it is one of the best wallet used for handling digital transactions. Although Paytm has provided us with the direct API for checking balance and making payments if we have sufficient balance in our wallet. But what if we do not […]

  • Creating First App in Meteor

    I have explained how to install Meteor on your System in my previous blog. This blog will explain how to create first App in Meteor following these simple steps. Step 1. We use Meteor’s command line tool meteor: [cc lang=”javascript”]meteor create microscope[/cc] This command will download Meteor, and set up a basic, ready to use […]

  • How to install hapi and how to create server in hapi.

    Installing hapi. In this section we will learn how to install hapi. Creating new server. In this section we will learn how to create a server in hapi. In this blog we will learn how to install hapi and how to create server in hapi. Installing hapi. In this section we will learn how to […]

  • How to use redis with node.js

    In this tutorial you’ll learn how to work with Redis in Node.js. Redis is an open source advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. In Node.js you can use several modules to interface with Redis server, but […]

  • Learn How To Use Neo4j With Node.js

    In this tutorial you discover how to work with the Neo4j graph database in Node.js. Graph databases are very useful when you want to store and query highly connected data. Neo4j is a database that can efficiently store, handle and query highly connected elements in your data model. Neo4j has a powerful and flexible data […]

Click to Copy