JavaScript Tutorial

Simple Hide/Show Password Using AngularJS

Submitted by razormist on
In this tutorial, we will create a Simple Hide/Show Password Using AngularJS. AngualarJS is a structural framework for dynamic web application. It is a kind of template that extends HTML to a new level of coding techniques. It is mostly used by other well known site for creating a template. So let's get started. Creating A Mark Up To create a form, open any kind of text editor(notepad++, etc).

Real-time Geographical Data Visualization with Node.js, Socket.IO and Leaflet

Submitted by admin on
Data visualisation is becoming an increasingly important subject. As the complexity an volumes of data increase, it is getting harder and harder to make sense of bare arrays of numbers without relevant visualisation models. Let me give you a good example. Right now I work in China. Few months ago there appeared a new startup: bycicle sharing service that used GPS sensors on each bike to track it in the city. Now let's imagine, you need analyse how evenly your bikes are distributed around the city and how many of them are in motion right now.

Using Azure DocDB with Node.js

Submitted by admin on
Moving your project to a cloud might be a difficult task especially since there are so many different cloud services out there. AWS is the most popular one and Azure is a very close competitor. In this article I will show you how to start using Azure, namely its NoSQL database service - DocDB. NOTE: Azure is a great platform, however it has significantly less tutorials and examples available online (compared to AWS). Before we start to write the code we will need to prepare the dependencies.

Uploading data to Amazon S3 from Node.js

Submitted by admin on
What can be simpler than uploading file to the server and saving it to hard drive, right? Open read stream, read bytes, open write stream, write bytes, done. Now let's explore the same question but from a high-load high-availability service perspective. You're designing new Instagram, where will you store the photos? Remember, at a bare minimum you need to make sure that a failure to a single node in a data center will not interrupt your service (you can't allow to lose those precious cat pictures that your users are uploading).

Implementing Facebook Authentication With Node.js

Submitted by admin on
In this small project we'll see how to implement Facebook authentication for your Node app with a help of Passport.js. Facebook authentication might sound like a lot of work but with the help of Passport, it is a surprisingly easy task. To give you a good feeling about the volume of code that you're about to write: It is about 80 lines of JavaScript and couple more lines of HTML. Before we start let's see how our application will look like. This is a truely minimalistic app with two pages: a login page and a "secret" page that only authenticated users are allowed to see.

Creating Real-Time Chat with Node.js and Socket.IO

Submitted by admin on
The way that people use internet evolved from static pages to Ajax and now to realtime web supported by standards like WebSockets and WebRTC. Making a real-time application, like chat, became increadibly easy with the help of platforms like Node.js and libraries like Socket.io. In this post we'll see how to create a minimalistic chat application form the scratch. Create a separate folder for your new project and type `npm init` in it. Then, install the required dependencies.

Handling File Uploads with Node.js and Express.js

Submitted by admin on
Whether you are building social platform or a simple website, sometimes you need to let users upload their own files. The typical scenario might be: uploading the user's photo for a profile page. With Node.js and express it is quite easy to create your own file upload service. In this post I will show you how. In the new folder run `npm init`, and create `package.json` as you usually do for every fresh Node project.

Building REST service with Express.js

Submitted by admin on
REST services became a de-facto standard of data exchange for public APIs. Twitter, GitHub, Parse are just few examples that rely on REST to exchange data with the clients. Before we start to write our first REST service with Node, let's see what exactly is REST and how it works. REST stands for 'REpresentational State Transfer'. It leverages the semantics of HTTP protocol to express operations over a some collection of items (data). REST typically uses JSON to send and receive data. NOTE: This is a common misconception to call every HTTP-based JSON service REST.