Results for: Node.js

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 4: Image Uploads with Multer and base64 encoding

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 4: Image Uploads with Multer and base64 encoding

Part 4: Picture Upload So far, Part 0 and Part 1 cover the data model and user document used in the application followed by Part 2 where we verify accounts through email using Nodemailer and Sendgrid. We then had part...

Pranav Mayuram January 8, 2016
Hashing Passwords Stored in Couchbase Server with Node.js

Hashing Passwords Stored in Couchbase Server with Node.js

Why You Should Hash All passwords should be hashed before entering a database because you have to consider the scenario where some malicious user attempts to gain entry into your data. Passwords are sensitive pieces of information that you don’t...

Easily Develop Node.js and Couchbase Apps with Ottoman

Easily Develop Node.js and Couchbase Apps with Ottoman

I recently read the article on Scotch.io regarding using Mongoose and MongoDB. I thought to myself, hey, Couchbase can do the same thing if you use Ottoman instead of Mongoose. This article is going to walk through the same comparisons...

Adding Google Sign-In with Node.js to a Couchbase Mobile application

Adding Google Sign-In with Node.js to a Couchbase Mobile application

Using OAuth APIs provided by 3rd party applications such as Google+ to login in your mobile app can provide a delightful first time experience to users. They can login with an account that they already know and trust and populate...

Adding user Sign Up to your Android app with Node.js and Couchbase Mobile

Adding user Sign Up to your Android app with Node.js and Couchbase Mobile

With the Sync Gateway API, you can authenticate on the client side as a specific user to replicate the data this user has access to. In the case of basic authentication, the user must already exist in the Sync Gateway...

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 3: Session-based User Authentication

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 3: Session-based User Authentication

Part 3: Login and Session models So far, Part 0 and Part 1 cover the data model and user document used in the application followed by Part 2 where we verify accounts through email using Nodemailer and Sendgrid. These are...

Pranav Mayuram December 8, 2015
Build A REST API using an ODM with Couchbase + Node.js + Express and Ottoman

Build A REST API using an ODM with Couchbase + Node.js + Express and Ottoman

Background Couchbase + Nodejs = Rapid Development Last year the owner of all things nodejs at Couchbase, Brett Lawson, debuted a preview of our upcomming ODM (Object Data Mapper) for Node.js referred to as “Ottoman.”  Since that time, it has...

Todd Greenstein November 11, 2015
Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 2: Email Verification with Nodemailer, Sendgrid and Couchbase

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 2: Email Verification with Nodemailer, Sendgrid and Couchbase

Part 2: Email Verification In this third installment of building Touchbase, I will go in depth about creating an email verification system using Couchbase, nodemailer, and the Sendgrid Web API. The first thing you will need to do is download...

Pranav Mayuram November 4, 2015
Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 1: Creating a User Document

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 1: Creating a User Document

Part 1: Register a User Necessary Materials Node.js Express.js Node Modules used Couchbase Node.js SDK/N1QL body-parser uuid node-forge The most important part of building a social network begins with the users. If you just have a directory of people, you...

Pranav Mayuram October 21, 2015
Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 0: Creating a Data Model

Exploring Couchbase and N1QL through Touchbase using Node.js and Angular.js – Part 0: Creating a Data Model

Part 0: Creating a Data Model Before building Touchbase, it is important to lay out the structure for how data will be stored. In the most basic form, there are really three different things we will need to store. User...

Pranav Mayuram October 9, 2015
First steps with Node.js and Couchbase Server

First steps with Node.js and Couchbase Server

I've been playing around with the Couchbase Node SDK lately and I thought it might be fun to blog my progress towards creating a fully fledged Node app using Couchbase as the database. Over the course of a few blog posts, I'm going...

Mass Deleting Documents by Compound Key Prefix Using Node.js

Mass Deleting Documents by Compound Key Prefix Using Node.js

A common question that gets asked in the Couchbase forums and on Stack Overflow is how to delete all records from a bucket that have a key that starts with some value. In other words, how to delete all records...