Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JSConfAr 2012
Search
Dan Zajdband
May 20, 2012
Technology
160
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JSConfAr 2012
Viernes 13: JSON APIs y node.js
Dan Zajdband
May 20, 2012
More Decks by Dan Zajdband
See All by Dan Zajdband
WebVR for the rest of us @ SRCCON 2016
danzajdband
0
150
Crowdsourcing
danzajdband
0
180
Progressive Web Applications
danzajdband
0
210
Hackdash - Media party 2015
danzajdband
0
67
Servidores... Para qué?
danzajdband
0
310
¿Qué ES 6? - Introducción a ECMAScript y Babel
danzajdband
2
440
La Web Realtime
danzajdband
1
150
Introducción a express - meetup node.js argentina
danzajdband
1
740
Other Decks in Technology
See All in Technology
ソフトウェアサプライチェーンの構造的リスクとコンテナ環境の保護
kyohmizu
5
740
My broken English still works: speaking at global OSS events
naruoga
0
120
なぜ Temporal の大小比較には compare しかないのか / Why Does Temporal Only Have compare() for Comparisons
kazukihayase
1
180
形式手法特論:Hyperproperty とモデル検査 #kernelvm / Kernel VM Study Tokyo 19th
ytaka23
0
330
LLM Internals: 언어 모델의 계보와 알고리즘 진화 (2023~2026)
inureyes
PRO
1
800
Adding Right-to-Left support to your web application with CSS logical properties — Lessons from Redmine
vividtone
0
160
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
Oracle MCP Servers Explained
thatjeffsmith
0
310
FDEの心得
noriakioji
5
6.4k
SmartHR Engineering Team Deck
smarthr
1
3.1k
Kiro入門|仕様駆動開発で変わるAI時代の開発スタイル
cmkudo
0
260
老害フォレンジッカーはAI羊の夢を見るか?
tadmaddad
0
360
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
840
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
350
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Agile that works and the tools we love
rasmusluckow
331
22k
Typedesign – Prime Four
hannesfritz
42
3.1k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
480
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
730
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
210
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Balancing Empowerment & Direction
lara
6
1.2k
Skip the Path - Find Your Career Trail
mkilby
1
190
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
660
Transcript
VIERNES 13 JSON APIs y NodeJS Dan Zajdband @dzajdband lunes
21 de mayo de 12
JSON lunes 21 de mayo de 12
lunes 21 de mayo de 12
Douglas Crockford lunes 21 de mayo de 12
Douglas Crockford • JSON • JSLint • JSMin • YUI
• Javascript: The Good Parts lunes 21 de mayo de 12
JSON • Formato de intercambio de datos • Sintaxis estilo
C • Fácil de entender y procesar para • Personas • Maquinas lunes 21 de mayo de 12
JSON lunes 21 de mayo de 12
Archirrival a.k.a. XML lunes 21 de mayo de 12
JSON Estructuras de datos • Objeto • Arreglo lunes 21
de mayo de 12
JavaScript Estructuras de datos • Objeto • Arreglo lunes 21
de mayo de 12
JSON Otras Estructuras de datos • Número • String lunes
21 de mayo de 12
JavaScript Otras Estructuras de datos • Número • String lunes
21 de mayo de 12
JSON = JavaScript Object Notation lunes 21 de mayo de
12
NodeJS lunes 21 de mayo de 12
NodeJS • JavaScript en el servidor • V8 • non-blocking
I/O • Especialmente bueno para networking • Excelente sistema de módulos • Implementación JSON nativa lunes 21 de mayo de 12
NodeJS JSON lunes 21 de mayo de 12
NodeJS Módulo HTTP lunes 21 de mayo de 12
módulos útiles NodeJS ExpressJS • Framework (El Sintatra de NodeJS)
• Routing • Middleware (Connect) • Soporta 14 sistemas de template lunes 21 de mayo de 12
módulos útiles NodeJS Superagent • Ajax with less suck (and
node.js HTTP client with less suck) lunes 21 de mayo de 12
módulos útiles NodeJS Otros • Node Oauth (npm install oauth)
• Socket.io (npm install socket.io) • Redis (npm install redis) • up (npm install up) • mocha (npm install mocha) lunes 21 de mayo de 12
Implementando una API lunes 21 de mayo de 12
Ojo al piojo lunes 21 de mayo de 12
lunes 21 de mayo de 12
Implementando una API Ojo al piojo • Autenticación • Generar
tokens • Hashes • Redis • OAuth • node-oauth lunes 21 de mayo de 12
Implementando una API Ojo al piojo • Limitación de recursos
• Documentar reglas de limitación • Mensajes de error expresivos lunes 21 de mayo de 12
Manejando requests lunes 21 de mayo de 12
Manejando requests Middleware • Express está basado (y usa) Connect
• Ambos proyectos creados y mantenidos por @tjholowaychuk lunes 21 de mayo de 12
Buscando las manos de peron lunes 21 de mayo de
12
lunes 21 de mayo de 12
Manejando requests Middleware lunes 21 de mayo de 12
Restringiendo recursos lunes 21 de mayo de 12
Manejando requests Middleware lunes 21 de mayo de 12
Manejando requests Middleware lunes 21 de mayo de 12
Streams lunes 21 de mayo de 12
Manejando requests Middleware lunes 21 de mayo de 12
Consumiendo APIs lunes 21 de mayo de 12
lunes 21 de mayo de 12
Manejo de requests lunes 21 de mayo de 12
Consumiendo APIs Manejo de requests • Módulo HTTP de NodejS
• Request (npm install request) • Superagent (npm install superagent) lunes 21 de mayo de 12
Consumiendo APIs Superagent • Ajax with less suck (and node.js
HTTP client with less suck) lunes 21 de mayo de 12
Consumiendo APIs Superagent • Streams lunes 21 de mayo de
12
OAuth lunes 21 de mayo de 12
Consumiendo APIs Node OAuth • Implementación de OAuth en NodeJS
• Autenticación • Manejo de requests http, https • Manejo de streams lunes 21 de mayo de 12
Manejo de errores lunes 21 de mayo de 12
lunes 21 de mayo de 12
Endpoints lunes 21 de mayo de 12
Twitter REST API ~= 100 endpoints lunes 21 de mayo
de 12
Consumiendo APIs Endpoints • Mi estrategia • Archivos de configuración
(JSON) con endpoints • Aumentar el prototipo del objeto que exporta la librería lunes 21 de mayo de 12
Una cosita más... (En realidad son 2) lunes 21 de
mayo de 12
This is Socket.IO guy... Do you still trust him? lunes
21 de mayo de 12
Preguntas? lunes 21 de mayo de 12
Gracias! lunes 21 de mayo de 12