background preloader


Facebook Twitter

Express.js 4 Cheatsheet. A Full Javascript Architecture, Part Three - MongoDB. Introduction to MongoDB Presentation MongoDB presents itself as a scalable, high-performance, open source and document-oriented database written in C++.

A Full Javascript Architecture, Part Three - MongoDB

Each of the concepts behind the first three characteristics are well known so let's focus on the fourth one : document-oriented. To clearly understand this concept we need some basic MongoDB terminology. Since we are going to see a lot of JSON let's start right away : A document-oriented database is a database where each document in a same collection may have a totally different structure. Because all the information of the same entity can be dynamically stored within a single document, joins operations are no longer needed in this type of database.

Joins operations are really expensive, they require a strong consistency and a fixed schema. Data Types MongoDB uses BSON as the data storage and network transfer format. Its key advantage over XML and JSON is efficiency in term of space and compute time. Advanced Features. MongoDB. Express - Node.js web application framework. AngularJS — Superheroic JavaScript MVW Framework. Node.js. Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js. MEAN.JS - Full-Stack. Blog. By Valeri Karpov, Kernel Tools engineer at MongoDB and and co-founder of the Ascot Project.


A few weeks ago, a friend of mine asked me for help with PostgreSQL. As someone who’s been blissfully SQL-­free for a year, I was quite curious to find out why he wasn’t just using MongoDB instead. It turns out that he thinks MongoDB is too difficult to use for a quick weekend hack, and this couldn’t be farther from the truth. I just finished my second 24 hour hackathon using Mongo and NodeJS (the FinTech Hackathon co­sponsored by 10gen) and can confidently say that there is no reason to use anything else for your next hackathon or REST API hack.

First of all, there are huge advantages to using a uniform language throughout your stack. Another big reason to go with MongoDB is that you can use it in the same way you would a MySQL database (at least at a high level). As a NoSQL database, MongoDB also allows us to define our schema entirely on the code side. Var User = db.model('users', UserSchema); AngularJS Tutorial for Beginners With NodeJS ExpressJS and MongoDB (Part I) - Adrian Mejia’s Blog. This tutorial is meant to be as clear as possible while at the same time teach you how to connect AngularJS with back-end servers in Node.Js, Express.js and databases such as MongoDB, also known as the MEAN stack.

AngularJS Tutorial for Beginners With NodeJS ExpressJS and MongoDB (Part I) - Adrian Mejia’s Blog

Let’s start with angularJS! We are going to start building all the examples in a single HTML file, which has embedded javascript and NO styles/CSS for simplicity. In the next tutorials we will learn how to use angularJS modules to break down the code, add testing to it and styles. What is Angular.js? Angular.js is a MVW (Model-View-Whatever) open-source JavaScript web framework that facilitates the creation of single-page applications (SPA) and data-driven apps. Brief Background AngularJS vs jQuery vs BackboneJS vs EmberJS. Creating RESTful APIs With NodeJS and MongoDB Tutorial (Part II) - Adrian Mejia’s Blog. Welcome to this RESTful API using Node.js (Express.js) and MongoDB (mongoose) tutorial.

Creating RESTful APIs With NodeJS and MongoDB Tutorial (Part II) - Adrian Mejia’s Blog

You can follow alone to make a stand alone API endpoint, or you could also check out our AngularJS or BackboneJS tutorials to build a javascript-client that connects with the endpoint we are going to built. What RESTful API really means? REST stands for Representational State Transfer. It is an architecture that allows client-server communication through a uniform interface. They are also stateless, cachable and has property called idempotence, which means that the side effect of multiple identical requests have the same effect as the same single request. HTTP RESTful API’s are compose of: HTTP methods, e.g.

Here’s is a summary what we want to implement: NOTES: * Format will be JSON. * Bulk updates and bulk destroys are not safe, so we will not be implementing those. * POST, GET, PUT, DELETE == CREATE, READ, UPDATE, DELETE == CRUD. MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III) - Adrian Mejia’s Blog. This is the last part of three-series tutorial.

MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS (Part III) - Adrian Mejia’s Blog

We are going to build a full-stack Todo App using the MEAN (MongoDB, ExpressJS, AngularJS and NodeJS). Brief Background TL; DR: NodeJS has been built from bottom up a non-blocking I/O paradigm, which gives you more efficiency per CPU core than using threads in other languages like Java. Mongoose Schemas v4.0.6. If you haven't yet done so, please take a minute to read the quickstart to get an idea of how Mongoose works.

Mongoose Schemas v4.0.6

Socket.IO. Angular Tuts/Study.