Node.js Cluster With Express.js

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js package ecosystem is the largest ecosystem of open source libraries in the world, Which makes the possibility for rapid prototyping environment. A single instance of Node.js runs in a single thread. To take advantage of multi-core systems, the user will sometimes want to launch a Node.js Cluster processes to handle the load.

(more…)

Read More

List Posts From WordPress Using REST API With cURL In PHP

WordPress REST API provides API endpoints for WordPress data types that allow developers to interact with sites remotely by sending and receiving JSON (JavaScript Object Notation) objects. This enables developers to create, read and update WordPress content from client-side JavaScript or from external applications. Nowadays every application provides the API to interact with their application remotely or to share their data in another platform. Here, This article will shows a how to list posts from WordPress using REST API with cURL in PHP
(more…)

Read More

Google URL Shortener API Integration With Node.js

Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. Users can create these short links through the web interface at goo.gl, or they can programatically create them through the Google URL Shortener API. With the URL Shortener API you can write applications that use simple HTTP methods to create, inspect, and manage goo.gl short links from desktop, mobile, or web.

(more…)

Read More

Realtime Communication With WebRTC Using Node.js & Socket.IO

WebRTC is an open source project to enable real-time communication of audio, video and data. WebRTC is available for native apps (iOS & Android) and web browsers (Firefox, Opera and Chrome on desktop & Android).

WebRTC enables peer to peer communication but it still needs a server for the following reasons,

  • Signaling – Exchange metadata for communication between peers.
  • STUN and TURN – Discover paths between peers on the Internet.

(more…)

Read More

MongoDB – GridFS Using Mongoose On Node.js

MongoDB and Node.js are often used together because of their shared use of JavaScript and its object notation (JSON & BSON). MongoDB is a type of NoSQL database will stores its data in documents. MongoDB stores data as BSON with a limitation of document size 16 MB, Where BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. GridFS is MongoDB’s solution for storing and retrieving files that exceed the BSON-document size limit of 16 MB. Instead of storing a file in a single document, GridFS divides the file into parts, or chunks, and stores each chunk as a separate document.

(more…)

Read More

Integrate Contact Form 7 With 3rd Party In WordPress

Contact Form 7 is one of the most popular WordPress plugins. Contact Form 7 allow your users to reach out privately. Email is the most easy and private form of communication on the internet. Having a contact page on your website is simply too important to be ignored, and a contact page is incomplete without a contact form.

Contact Form 7 provide us lot of hooks allows you to call functions in specific time or event, using this hook we can integrate Contact Form 7 With 3rd Party API’s. Here are some code snippet allows you to integrate Contact Form 7 With MSG91

(more…)

Read More

Authentication using GitHub API

Today’s article with authentication using GitHub API, Which helps you to Log In / Sign Up your application to collect user data. GitHub is a version control repository and Internet hosting service. It offers all of the distributed version control and source code management functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project. Nowadays everyone using GitHub/Gist to maintain version control of their source code and also to share source code with their team members or public.

(more…)

Read More