Integrating Auth0 and Formio with Angular(5)

In this article, I am going to show you how to implement social authentication(Facebook, LinkedIn, Github) with Auth0. I will also show you how to integrate formio in Angular. Getting Setup I am going to use angular-cli to create an Angular project. You must install angular-cli on your machine sudo npm install -g angular/cli Creating […]

Continue reading

Execute Tasks in the Loop

Execute Tasks In the Loop Using Async.each Now I am going to show you how to execute asynchronous Tasks In the Loop by using async.each const Client = require(‘node-rest-client’).Client; const restClientService = new Client(); restClientService.registerMethod(‘getPosts’, ‘http://jsonplaceholder.typicode.com/users/1/posts’, ‘GET’); restClientService.registerMethod(‘getAlbums’, ‘http://jsonplaceholder.typicode.com/users/1/albums’, ‘GET’); restClientService.registerMethod(‘getPhotos’, ‘http://jsonplaceholder.typicode.com/albums/1/photos’, ‘GET’); export default restClientService;   function loopDemo(req, res, next) { let users = […]

Continue reading

Create Angular 4.3 Project Using Angular-cli

1) Create Angular ProjectYou can choose any name. I don’t need to install the dependency right now because I want to install Angular 4.3.0 version. Let me show you how can you install them. Open the project. I am going to use Visual Studio code.I have successfully opened the project in Visual Studio code.Let me […]

Continue reading

Node.js : Execute Tasks In Parallel

Use Case If you want to run multiple tasks and you don’t need to wait for the previous method, then you have to run the asynchronous function in parallel. In this post, I will show you how to execute asynchronous tasks in parallel by using callbacks, promises, and Async/Await.We will have three asynchronous functions. I’m […]

Continue reading

Execute Asynchronous Tasks in Series

What is Callback A callback is an asynchronous equivalent for a function. A callback function is called at the completion of a given task. function login(callback) { //do some operation callback(‘You have successfully LoggedIn’); } login(function(result) { console.log(result); });   I have created a login function. This login function is accepting one argument which is […]

Continue reading