JavaScript Tutorial

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.

Greeting Message to the User

Submitted by azalea zenith on
This simple script that I create using JavaScript jQuery that will message the user then this program will greet the user base on the current time. Use this simple program to be polite to the user and it shows to the user how much they important in every visit to the website. Live Demo All source code construct using jQuery script.

Byte Calculator in Bootstrap

Submitted by azalea zenith on
In this tutorial, we are going to create Byte Calculator in Bootstrap. This tutorial creates using JavaScript. If you are looking for this kind of tutorial then you are at the right place. Using this tool to convert the size of one file of one unit to another. The results turn in these possible units option. Like, Byte, KiloByte, MegaByte, and GigaByte. After downloading this source code, kindly insert the desired numeric value in the TextBox then select what units do you want to convert it and click the "Calculate . .