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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
CETA-Ciemat
February 11, 2016
Technology
0
710
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
700
JUC2016 - Mongo DBA
cetaciemat
0
550
JUC2016 - Mongo 101
cetaciemat
0
520
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
360
Other Decks in Technology
See All in Technology
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
130
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
なぜ今、コスト最適化(倹約)が必要なのか? ~AWSでのコスト最適化の進め方「目的編」~
htan
1
110
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
200
Cosmos World Foundation Model Platform for Physical AI
takmin
0
650
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
440
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
320
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
180
月間数億レコードのアクセスログ基盤を無停止・低コストでAWS移行せよ!アプリケーションエンジニアのSREチャレンジ💪
miyamu
0
830
配列に見る bash と zsh の違い
kazzpapa3
1
120
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
180
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Fireside Chat
paigeccino
41
3.8k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
64
The browser strikes back
jonoalderson
0
360
WCS-LA-2024
lcolladotor
0
450
Marketing to machines
jonoalderson
1
4.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
300
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
57
50k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
54
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]