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
Loopback + Angular.js
Search
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
More Decks by Yuren Ju
See All by Yuren Ju
Taste Cucumber.js - JavaScript BDD Framework
yurenju
0
190
Code For America 見聞錄 - 社會安全網
yurenju
0
250
Impossible Election for recall in Taiwan
yurenju
1
520
物資管理系統與災民證
yurenju
0
1.1k
JavaScript 開發流程自動化懶人包
yurenju
38
6.1k
Code Coverage -- Javascript Frontend + Backend
yurenju
14
8.1k
bifrost 物資管理系統
yurenju
4
330
Gaia Build System introduction
yurenju
2
220
Open Data Initiatives for Taiwan
yurenju
0
380
Other Decks in Technology
See All in Technology
「ちゃんとやっている」は独りよがりだった ― 不安に寄り添うインシデント対応へ / Towards incident response that addresses anxieties
chmikata
1
4.5k
インフラ寄りSREでも 開発に踏み出せる〜境界を越えてユーザー体験に向き合いたい〜
sansantech
PRO
2
3.4k
Making sense of Google’s agentic dev tools
glaforge
1
130
プライバシー保護の理論と実践
lycorptech_jp
PRO
1
250
地域 SRE コミュニティ最前線 / SRE NEXT 2026 Discussion Night Track C
muziyoshiz
0
200
GuardrailからGovernanceへ~AIエージェント運用の次の課題~
sbspsy
1
260
しぶいSRE: サーバから見えない障害にどう向き合うか。ラストワンマイルのデバッグ実践 / Shibui SRE
kanny
13
5.8k
プロダクトだけじゃない、社内プロセスにおける自動化・省力化ノススメ
kakehashi
PRO
1
3.4k
Compose 新機能総まとめ / What's New in Jetpack Compose
yanzm
0
160
AIと共生する開発者プラットフォーム:バクラクのモノレポ×マイクロサービス基盤
sakajunquality
2
3.2k
Docker Desktop不要の時代が来る? WSL標準の「wslc」で Linuxコンテナを動かしてみた.
ueponx
0
880
依頼文化をやめる日 EM視点で語るPlatform EngineeringとInclusive SRE / Discussing Platform Engineering and Inclusive SRE from an EM's Perspective
shin1988
4
5k
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Typedesign – Prime Four
hannesfritz
42
3.1k
The agentic SEO stack - context over prompts
schlessera
0
840
A Modern Web Designer's Workflow
chriscoyier
698
190k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Statistics for Hackers
jakevdp
799
230k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
Navigating Team Friction
lara
192
16k
Done Done
chrislema
186
16k
For a Future-Friendly Web
brad_frost
183
10k
Transcript
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