Setting Up Django Development Environment Using Anaconda

Hey there, Happy to see you and welcome to my blog. In this blog series we are gonna learn about Django.  Setting up Django project with Anaconda, an amazing Python web framework for rapid web development.

First of all download Python and Anaconda on your system. Installation is easy just follow the instructions and you will be good to go. Wait a minute, Why we need Anaconda and what the hell is that?

Anaconda is a free and open source distribution of the Python and R that aims to simplify package management and deployment. One can download popular Python and R packages and notebooks to jump start your work.You can also store your packages, notebooks and environments in Anaconda Cloud and share them with your team. So in future if you are gonna work with Machine Learning or Data Science with Python then Anaconda will make your job easier.

(more…)

Read More

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

Best Practice of Connecting MongoDB Using Mongoose ODM

Mongoose ODM provides a straight-forward, schema-based solution to model your application data. It includes built-in type casting, validation, query building, business logic hooks and more, out of the box. Mongoose is the Object Document Mapper (ODM) for Node.js and it is written on the top of the Node.js and native MongoDB driver. Mongoose ODM gives the ability to define a schema for their documents which can then be used to map documents to objects in their programming language. It makes you to type-caste & validate your object before saving your document to MongoDB
(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

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