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
CETA-Ciemat
February 11, 2016
Technology
730
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
More Decks by CETA-Ciemat
See All by CETA-Ciemat
JUC2016 - Hands-on lab: Construyendo una API REST con Python y MongoDB
cetaciemat
0
720
JUC2016 - Mongo DBA
cetaciemat
0
580
JUC2016 - Mongo 101
cetaciemat
0
550
Jornadas Técnicas de RedIRIS 2015
cetaciemat
0
190
Repositorios digitales para la investigación: La experiencia de CETA-Ciemat
cetaciemat
0
220
Primeros pasos con Tableau
cetaciemat
0
580
Primeros pasos con Jupyter Notebook
cetaciemat
1
570
Introducción a Latex
cetaciemat
0
1.9k
JUC - Diseño e instalación de un clúster Hadoop
cetaciemat
0
380
Other Decks in Technology
See All in Technology
AIのReact習熟度を測る
uhyo
2
680
不要なレビューをAIにまかせて AIコーディングの環境改善を加速した
shoota
1
270
「勝手に広まる」人気 AI エージェントを爆速で作ろう!(AWS Summit Japan 2026講演資料)
minorun365
PRO
10
2.5k
水を運ぶ人としてのリーダーシップ
izumii19
4
1k
Agile and AI Redmine Japan 2026
hiranabe
4
480
[AWS Summit Japan 2026]迷っているあなたへ_小さな一歩が、やがて自分を助けてくれる
sh_fk2
2
410
フルAIで個人開発して学んだあれこれ / yuruai vol.1
isaoshimizu
0
120
AWS Security Hub CSPMの成功・失敗体験
cmusudakeisuke
0
550
AIに障害切り分けを全部やってもらった。 。 。 。
estie
0
160
技術・能力を向上する原理原則 #きのこセッションa #きのこ2026
bash0c7
0
130
AIが自律的に回る開発ループを設計してチーム開発に組み込む
nekorush14
0
130
Zenoh on Zephyr on LiteX
takasehideki
2
110
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
My Coaching Mixtape
mlcsv
0
150
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
400
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
330
So, you think you're a good person
axbom
PRO
2
2.1k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Building an army of robots
kneath
306
46k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
210
Into the Great Unknown - MozCon
thekraken
41
2.6k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
340
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]