Archive for the ‘node’ Category

Forms, File Uploads and Security with Node.js and Express

Posted on: No Comments
If you’re building a web application, you’re likely to encounter the need to build HTML forms on day one. They’re a big part of the web experience, and they can be complicated. Typically the form handling process involves: displaying an empty HT...

Local Authentication Using Passport in Node.js

Posted on: No Comments
In Passport Authentication for Node.js Applications, we talked about authentication using Passport as it relates to social login (Google, Facebook, GitHub, etc.). In this article, we’ll see how we can use Passport for local authentication with a Mong...

Passport Authentication for Node.js Applications

Posted on: No Comments
In this tutorial, we'll be implementing authentication via Facebook and GitHub in a Node.js web application. For this, we'll be using Passport, an authentication middleware for Node.js. Passport supports authentication with OpenId/OAuth providers. Expr...

How to Build a Simple Web Server with Node.js

Posted on: No Comments
The following is an excerpt from the book Get Programming with Node.js, published by manning.com. You can purchase the book here at a 37% discount by using the code fccwexler. This article is a practical introduction to using Node.js. We’re going to ...

What Is Node and When Should I Use It?

Posted on: No Comments
So you’ve heard of Node.js, but aren’t quite sure what it is or where it fits into your development workflow. Or maybe you’ve heard people singing Node’s praises and now you’re wondering if it’s something you need to learn. Perhaps you’re...

How to Test Your JavaScript with Selenium WebDriver and Mocha

Posted on: No Comments
This article was originally published on TestProject. In case you are looking to write a functional test in JavaScript, the following tutorial provides UI automation engineers with the perfect structural reference material for JavaScript testing with S...

Creating a Static API from a Repository

Posted on: No Comments
When I first started building websites, the proposition was quite basic: take content, which may or may not be stored in some form of database, and deliver it to people's browsers as HTML pages. Over the years, countless products used that simple model...

MEAN Stack: Build an App with Angular 2+ and the Angular CLI

Posted on: No Comments
The MEAN stack comprises advanced technologies used to develop both the server-side and the client-side of a web application in a JavaScript environment. The components of the MEAN stack include the MongoDB database, Express.js (a web framework), Angul...

Using MySQL with Node.js and the mysql JavaScript Client

NoSQL databases are all the rage these days and probably the preferred back-end for Node.js applications. But you shouldn't architect your next project based on what's hip and trendy, rather the type of database to be used should depend on the project'...

How to Build and Structure a Node.js MVC Application

Posted on: No Comments
In a non-trivial application, the architecture is as important as the quality of the code itself. We can have well-written pieces of code, but if we don’t have a good organization, we’ll have a hard time as the complexity increases. There’s no ne...