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
JUC2016 - Hands-on lab: Consumiendo una API Res...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
CETA-Ciemat
February 11, 2016
Technology
0
700
JUC2016 - Hands-on lab: Consumiendo una API Rest con AngularJS
II Jornadas Técnicas UEx – CIEMAT. Hands-on lab: Consumiendo una API Rest con AngularJS
CETA-Ciemat
February 11, 2016
Tweet
Share
More Decks by CETA-Ciemat
See All by CETA-Ciemat
JUC2016 - Hands-on lab: Construyendo una API REST con Python y MongoDB
cetaciemat
0
690
JUC2016 - Mongo DBA
cetaciemat
0
550
JUC2016 - Mongo 101
cetaciemat
0
510
Jornadas Técnicas de RedIRIS 2015
cetaciemat
0
160
Repositorios digitales para la investigación: La experiencia de CETA-Ciemat
cetaciemat
0
200
Primeros pasos con Tableau
cetaciemat
0
560
Primeros pasos con Jupyter Notebook
cetaciemat
1
540
Introducción a Latex
cetaciemat
0
1.8k
JUC - Diseño e instalación de un clúster Hadoop
cetaciemat
0
350
Other Decks in Technology
See All in Technology
AWSと暗号技術
nrinetcom
PRO
1
110
re:Inventで出たインフラエンジニアが嬉しかったアップデート
nagisa53
3
160
2026/01/16_実体験から学ぶ 2025年の失敗と対策_Progate Bar
teba_eleven
1
220
AWS Network Firewall Proxyで脱Squid運用⁈
nnydtmg
1
160
20260114_データ横丁 新年LT大会:2026年の抱負
taromatsui_cccmkhd
0
370
全員が「作り手」になる。職能の壁を溶かすプロトタイプ開発。
hokuo
1
120
クラウドセキュリティの進化 — AWSの20年を振り返る
kei4eva4
0
150
みんなでAI上手ピーポーになろう! / Let’s All Get AI-Savvy!
kaminashi
0
180
AI Agent Agentic Workflow の可観測性 / Observability of AI Agent Agentic Workflow
yuzujoe
5
2.3k
ソフトとハード両方いけるデータ人材の育て方
waiwai2111
1
550
SOC2は、取った瞬間よりその後が面白い
3flower
0
150
20260120 Amazon VPC のパブリックサブネットを無くしたい!
masaruogura
2
160
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
78
How to build a perfect <img>
jonoalderson
1
4.9k
Done Done
chrislema
186
16k
Embracing the Ebb and Flow
colly
88
5k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
Navigating Team Friction
lara
192
16k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
140
From π to Pie charts
rasagy
0
120
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
68
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
110
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
How GitHub (no longer) Works
holman
316
140k
Transcript
CONSUMIENDO UNA API REST CON ANGULARJS César Suárez Ortega <
[email protected]
>
II Jornadas Técnicas UEx – CIEMAT: Introducción a NoSQL con MongoDB 9 – 11 de Febrero, 2016
Índice Conceptos básicos Patrón MVC Inyección de dependencias Promesas AngularJS
Práctica: Nuestra tienda online
PATRONES DE DISEÑO
Patrón MVC
Patrón MVC API
“Dependency Injection” is a 25-dollar term for a 5-cent concept.
James Shore http://www.jamesshore.com/Blog/Dependency-Injection-Demystified.html
Inyección de dependencias public class Example { private DatabaseThingie myDatabase;
//SIN inyección de dependencias public Example() { myDatabase = new DatabaseThingie(); } //CON inyección de dependencias public Example(DatabaseThingie useThisDatabaseInstead) { myDatabase = useThisDatabaseInstead; } public void doStuff() { myDatabase.GetData(); } }
Promesas var result = sloooooowSyncMethod(); console.log(result); var promise = promiseAsyncMethod();
promise.then(function(result) { console.log(result); });
None
None
None
Sobre AngularJS Framework JavaScript Extiende HTML Muchas facilidades para organizar
nuestro front-end. Aproximación declarativa. <button ng-click="addLol()">Touch me</button> DEPRECATED
PRÁCTICA #2
$ curl –sL https://deb.nodesource.com/setup | sudo bash - $ sudo
apt-get install nodejs build-essential ruby ruby-dev $ git clone https://github.com/csuarez/juc-mongodb-web.git $ cd juc-mongodb-web $ sudo npm –g install grunt-cli $ sudo npm –g install bower $ sudo gem install compass $ npm install $ bower install --allow-root $ grunt serve Arrancando la web https://github.com/csuarez/juc-mongodb-web
AngularJS facts Framework JavaScript MVC Flexible Muchas facilidades para
AngularJS facts
[email protected]