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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
200
Code For America 見聞錄 - 社會安全網
yurenju
0
250
Impossible Election for recall in Taiwan
yurenju
1
530
物資管理系統與災民證
yurenju
0
1.1k
JavaScript 開發流程自動化懶人包
yurenju
38
6.1k
Code Coverage -- Javascript Frontend + Backend
yurenju
14
8.2k
bifrost 物資管理系統
yurenju
4
340
Gaia Build System introduction
yurenju
2
220
Open Data Initiatives for Taiwan
yurenju
0
390
Other Decks in Technology
See All in Technology
AI・HPC開発を支えるGPU環境の新しい選択肢 液冷GPUシステム「AquSys」の取り組み
gpuunite_official
0
240
型落ちシンクライアント端末のPoEモジュールを自作したかった話
logica0419
0
410
AI駆動開発はどこまで来たのか? ファインディの最新実態調査で読み解く現在地 Devin Con Tokyo
akiratom
1
500
AIにブラウザを触らせて、E2EテストをPlaywrightで書く
koji_kawamura
0
410
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.5k
RelayerというPHPのフレームワークを作った
polidog
PRO
0
140
Genie Codeハンズオン応用編
taka_aki
0
140
トークンマネジメントでAIにとって働きやすい環境を実現する
hikaruegashira
0
160
MIXIで活躍できるエンジニアを 若手社員目線で考えてみる
mixi_engineers
PRO
0
150
Data Hubグループ 紹介資料
sansan33
PRO
0
3.2k
巨大気象データと戦う ― サロゲートモデル学習を高速化する圧縮技術
gpuunite_official
0
260
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
480
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
480
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Leo the Paperboy
mayatellez
8
2.2k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
The SEO Collaboration Effect
kristinabergwall1
1
530
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
280
The Curious Case for Waylosing
cassininazir
1
480
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
800
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