me
@jakerella

Agenda

  1. Node Basics (briefly)
  2. LoopBack Feature Overview
  3. Tools, Application Scaffolding, & Configuration
  4. Basic Data Models & Data Sources
  5. Relationship Modeling
  6. Data Validation
  7. Authentication & Authorization
  8. Custom Remote Methods
  9. Basic Debugging and Profiling (time permitting)

Node Basics

Node Architecture http://training.strongloop.com/node-and-java#/5

Basic Modules


// math.js
module.exports = function add(x, y) {
    return x + y;
};
    

// index.js
var addNumbers = require('math');

addNumbers(6, 7);  // 13
    

Basic Modules


function add(x, y) { return x + y; }
function subtract(x, y) { return x - y; }

module.exports = {
    add: add,
    subtract: subtract
};
    

// index.js
var mathApi = require('math');

mathApi.add(6, 7);  // 13
    

Revealing Module Patten


module.exports = function myApi(option) {
    // inspect options, build API methods...

    return {
        methodOne: function() { ... },
        methodTwo: function() { ... }
    };
};
    

var express = require('express');

var app = express();
app.set('port', 3000);
    

The Node.js API

nodejs.org/api
LoopBack
http://LoopBack.io

Slides from StrongLoop

training.strongloop.com/intro-to-loopback (PDF)

StrongLoop Documentation: docs.strongloop.com

LoopBack at a high level http://training.strongloop.com/intro-to-loopback#/9

Let's Code!

Additional Links and Resources