Building REST APIs with Swagger On Node.js

Nowadays REST APIs plays important role in every applications, Where it has been used to connect with other applications and to share data with that applications. REST APIs without a good documentation on how to use it, is useless. Because of that, developers have worked hard to create a standard way of describing APIs and documentation. Swagger On Node.js providing a reliable solution for design, development, testing and documentation of REST APIs.

(more…)

Read More

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

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

Push Notification For Web Applications Using Firebase

Push notifications allows your application to notify user with new messages/events even when the user is not actively using your application/website. It provides a simple and effective way to re-engage with your users. Push notification for web applications is a customized message or alert delivered by a centralized server. It allow your users to opt-in to timely updates from sites they love and allow you to effectively re-engage them with customized, engaging content.
(more…)

Read More

Facebook Messenger Bot With Node.js

Facebook is the biggest social network in the world and they also involved in various research process to give power for the people to share and make the world more open and connected. Facebook started developing artificial intelligence in order to have computer software programs called bots, take over sales and customer service functions on Facebook messenger platform. It will gives you the ability to have conversations with people on messenger and they also added new tools for you to build and promote your bot so you can create a custom experience for your unique audience. Let’s we get into few configuration and few line of program to create our bot
(more…)

Read More