creating a ddp api with meteor

15
API Design in Meteor by @lukasvan3l, @q42

Upload: lukas-van-driel

Post on 18-Jul-2015

109 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Creating a DDP API with Meteor

API Design in Meteorby @lukasvan3l, @q42

Page 2: Creating a DDP API with Meteor

Simple tools for Happy Nerdsinternal tooling at Q42

Page 3: Creating a DDP API with Meteor

Hour tracking

Employee management

Feedback tool

Project Planning

Invoicing

Who just went down the slide?

Page 4: Creating a DDP API with Meteor

Hour tracking

Employee management

Feedback tool

Project Planning

Invoicing

Who just went down the slide?

Employees

Projects

Entries

Page 5: Creating a DDP API with Meteor

API

meteor client

REST

DD

P

non-meteor client

Page 6: Creating a DDP API with Meteor

DD

PMethods

Subscriptions

Page 7: Creating a DDP API with Meteor

DD

P

Methods & Subscriptions

Server

Client

Page 8: Creating a DDP API with Meteor

DD

P

Methods & Subscriptions

Server

Page 9: Creating a DDP API with Meteor

DD

P

Methods & Subscriptions

Client

Page 10: Creating a DDP API with Meteor

REST

GET PUT POST DELETE

using normal routing

Page 11: Creating a DDP API with Meteor

REST

GET PUT POST DELETE

map to DDP allow/deny rules

Page 12: Creating a DDP API with Meteor

EZPublish

https://atmospherejs.com/q42/ezpublish

Page 13: Creating a DDP API with Meteor

Access Tokens

Page 14: Creating a DDP API with Meteor

Create a package

DDP.connect(url)

Initiate Mongo.Collections

SimpleSchema -> best documentation!

Authentication

Utilities

Page 15: Creating a DDP API with Meteor

thnx!@lukasvan3l

@q42