Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Loopback + Angular.js
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Yuren Ju
March 12, 2015
Technology
620
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Loopback + Angular.js
Yuren Ju
March 12, 2015
Transcript
27 slides
Loopback + Angular Yuren Ju DŽ
Yuren u Mozilla (pervious) u Speed3D (now) u Open Source
Community u COSCUP, Hacking Thursday, KaLUG u 割闌尾計畫, g0v u 60% front-end developer u 40% backend developer
None
December A new project…
Finding a backend for creating web APIs service
None
Loopback u Powerful Node.js framework for creating APIs and easily
connecting to backend data sources. u Easy-to-use CLI wizard u Built-in API Explorer
Easy to develop – e.g. Bifrost
Loopback app architecture example Method Model App Loopback Project find()
create() User find() ...
Use CLI for… u Model u Relationship u ACLs
Create stuffs by cli u$ slc loopback:model u$ slc loopback:relation
u$ slc loopback:acl
Let’s live demo! u Create an API service for multiple
sites blog system u Models u User u Article u Comment
DEMO…
Strongloop Arc u A graphical UI for the StrongLoop Platform
that complements the slc command line tools for developing APIs quickly and getting them connected to data. Arc also includes tools for building, profiling and monitoring Node apps.
Client sdk u Angulars.js u Android u iOS
Generate Angular.js SDK $ lb-‐ng server/server.js clients/lb-‐services.js $ lb-‐ng-‐doc clients/lb-‐services.js
DŽ
DŽ lb-ng-doc Answer: Refresh page again
DŽ API does not consist between node.js and angular.js u
Node u article.comments.create(<comment object>, callback); u Comment.create({articleId: article.id, …}, callback); u Angular.js u Article.comments.create({id: article.id}, <comment object>, successCb); u Article.comments.create({id: article.id}, <comment object>).$promise.then(cb);
DŽ Model hook beforeUpdate() does not work https://github.com/strongloop/loopback-datasource-juggler/issues/159
DŽ Model description is not generated by lb-ng-doc https://github.com/strongloop/loopback-sdk-angular/issues/132
DŽ Some APIs aren’t generated with “hasOne” relationship X
DŽ Remote method does not apply ACL rules http://docs.strongloop.com/display/public/LB/Defining+and+using+roles
MS SQL data source does not map right type Number
=> Integer…
Just like fog of war…
But, if I can choose again…
None
More Decks by Yuren Ju
See All by Yuren Ju
Taste Cucumber.js - JavaScript BDD Framework
yurenju
0
240
Code For America 見聞錄 - 社會安全網
yurenju
0
310
Impossible Election for recall in Taiwan
yurenju
1
540
物資管理系統與災民證
yurenju
0
1.2k
JavaScript 開發流程自動化懶人包
yurenju
38
6.1k
Code Coverage -- Javascript Frontend + Backend
yurenju
14
8.2k
bifrost 物資管理系統
yurenju
4
380
Gaia Build System introduction
yurenju
2
230
Open Data Initiatives for Taiwan
yurenju
0
410
Other Decks in Technology
See All in Technology
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
17
120k
AI時代における医療情報システムのセキュリティ / Security of Healthcare IT Systems in the AI Era
henryofficial
0
190
_マネジメントする人される人ナイト_2026__良いチームを作っていきたい_お気持ち_.pdf
xkxaxkx
0
800
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
150
Biohub - Cell Tracking During Development 5th place solution
rist
0
170
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
130
Frontier Teams — Amazon は AI で「開発のやり方」をどう変えたのか
kmotohas
0
300
AIで実装が加速したのに、 なぜ私は仕事の大半で人と話し続けていたのか?
say_no_w
0
190
[関西Kaggler会 20261113] 続・コミュニティコンペのススメ
nejumi
0
150
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
240
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
120
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
2
120
Featured
See All Featured
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Become a Pro
speakerdeck
PRO
31
6.4k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300
A Tale of Four Properties
chriscoyier
163
24k
30 Presentation Tips
portentint
PRO
1
470
Bash Introduction
62gerente
615
220k
Side Projects
sachag
456
43k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670