Creating a DDP API with Meteor

Post on 18-Jul-2015

112 views 1 download

Tags:

Transcript of Creating a DDP API with Meteor

API Design in Meteorby @lukasvan3l, @q42

Simple tools for Happy Nerdsinternal tooling at Q42

Hour tracking

Employee management

Feedback tool

Project Planning

Invoicing

Who just went down the slide?

Hour tracking

Employee management

Feedback tool

Project Planning

Invoicing

Who just went down the slide?

Employees

Projects

Entries

API

meteor client

REST

DD

P

non-meteor client

DD

PMethods

Subscriptions

DD

P

Methods & Subscriptions

Server

Client

DD

P

Methods & Subscriptions

Server

DD

P

Methods & Subscriptions

Client

REST

GET PUT POST DELETE

using normal routing

REST

GET PUT POST DELETE

map to DDP allow/deny rules

EZPublish

https://atmospherejs.com/q42/ezpublish

Access Tokens

Create a package

DDP.connect(url)

Initiate Mongo.Collections

SimpleSchema -> best documentation!

Authentication

Utilities

thnx!@lukasvan3l

@q42