SlideShare a Scribd company logo
by
Fahmi Abdul Latip
Up and running
What need to be installed
• NodeJS v8.x LTS
• VS Code - https://code.visualstudio.com/
• Insomnia REST client - https://insomnia.rest/
• Loopback CLI
 [sudo] npm install -g loopback-cli@latest
• MySQL Database v5.6 or higher
• HeidiSQL / PHPMyAdmin / Sequel Pro
Loop what? Let’s talk in Express
• The Node.js API Framework.
• One of the framework that based from the
famous web JavaScript framework, ExpressJS.
• Express is a minimal and flexible Node.js web
application framework that provides a robust set
of features for web and mobile applications.
• Comply with Open API specification mostly
• http://nodeframework.com/index.html#rest-api
The Core
Total Framework
Framework Modules
Category Description Use to… Modules
Models Model and API
server
Dynamically mock-up models and expose them
as APIs without worrying about persisting.
loopback
Abstraction Model data
abstraction to
physical
persistence
Connect to multiple data sources or services and
get back an abstracted model with CRUD
capabilities independent of backing data source.
loopback-datasource-juggler
Initialization Application
initialization
Configure data sources, customize models,
configure models and attach them to data
sources; Configure application settings and run
custom boot scripts.
loopback-boot
Sequencing Middleware
execution
Configure middleware to be executed at various
points during application lifecycle.
loopback-phase
Data RDBMS and
noSQL physical
data sources
Enable connections to RDBMS and noSQL data
sources and get back an abstracted model.
•loopback-connector-mongodb
•loopback-connector-mysql
•loopback-connector-
postgresql
•loopback-connector-msssql
•loopback-connector-oracle
•Many others…
Integration General system
connectors
Connect to an existing system that expose APIs
through common enterprise and web interfaces
•loopback-connector-rest
•loopback-connector-soap
Components Add-ons to core
LoopBack
Integrate with pre-built services packaged into
components.
•loopback-component-push
•loopback-component-storage
•loopback-component-passport
Clients Client SDKs Develop client app using native platform objects
(iOS, Android, AngularJS) that interact with
LoopBack APIs via REST.
•loopback-sdk-ios
•loopback-sdk-android
•loopback-sdk-angular
Data Sources and Connectors
Create New “lb app”
__dirname structure
Create Persistence Model
Run the explorer…
http://loopback.io/doc/en/lb3/Use-API-
Explorer.html
Hooking up to real Datasource
Auto-migrate / Auto-update
'use strict';
module.exports = function(app) {
app.dataSources.<ds name>.autoupdate(‘<modelname>’, err => {
if (err) throw err;
});
};
Establishing relationship
• lb relation
 1 to 1
 1 to many
 Many to many
• Through table
User based model
• Build-in model in framework
• Basic authentication, ACL and AccessToken
ready
Access Control List

More Related Content

PPTX
Qui Quaerit, Reperit. AWS Elasticsearch in Action
PDF
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
PPTX
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
PDF
Java & Microservices in Azure
PPTX
MVC 6 - the new unified Web programming model
PPTX
Serverless Architecture - introduction + AWS demo
PPTX
Monitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
PPTX
Rubix - Serverless architecture
Qui Quaerit, Reperit. AWS Elasticsearch in Action
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
Java & Microservices in Azure
MVC 6 - the new unified Web programming model
Serverless Architecture - introduction + AWS demo
Monitor Azure Kubernetes Cluster With Prometheus by Mamta Jha
Rubix - Serverless architecture

What's hot (20)

PDF
Shift Remote AI: Build and deploy PyTorch Models with Azure Machine Learning ...
PDF
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
PDF
Go Serverless with Java and Azure Functions
PPTX
Игорь Леонтьев "Azure Container Service: not only Docker"
PPTX
Kubernetes talk at DDDSydney 2017
PPTX
Azure functions
PPTX
Сергей Радзыняк ".NET Microservices in Real Life"
PDF
What's New in Nuxeo Platform 7.3
PPTX
Infrastructure as Code on Azure - Show your Bicep! v0.2 - .NetConf 2020 by Do...
PPTX
Cnam azure 2015 storage
PPTX
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
PPTX
Serverless in azure
PPTX
Cnam cours azure cloud services
PPTX
Cnam cours azure iaas
PPTX
Azure PaaS (WebApp & SQL Database) workshop solution
PPTX
Building solutions with the SharePoint Framework - deep-dive
PPTX
TechEvent Infrastructure as Code on Azure
PDF
From SQL to MongoDB
PPTX
Azure Update, July 2016
PPTX
Cnam cours azure web sites
Shift Remote AI: Build and deploy PyTorch Models with Azure Machine Learning ...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Go Serverless with Java and Azure Functions
Игорь Леонтьев "Azure Container Service: not only Docker"
Kubernetes talk at DDDSydney 2017
Azure functions
Сергей Радзыняк ".NET Microservices in Real Life"
What's New in Nuxeo Platform 7.3
Infrastructure as Code on Azure - Show your Bicep! v0.2 - .NetConf 2020 by Do...
Cnam azure 2015 storage
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
Serverless in azure
Cnam cours azure cloud services
Cnam cours azure iaas
Azure PaaS (WebApp & SQL Database) workshop solution
Building solutions with the SharePoint Framework - deep-dive
TechEvent Infrastructure as Code on Azure
From SQL to MongoDB
Azure Update, July 2016
Cnam cours azure web sites
Ad

Similar to LoopbackJS the intro (20)

PDF
Intro to Sails.js
PDF
A presentationon SPRING-BOOT and CRUD operation
PDF
Easy integration of Bluemix services with your applications
PPTX
ASP .Net Core SPA Templates
PDF
Open shift and docker - october,2014
PPTX
Connecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
PDF
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
PDF
IBM InterConnect 2015 - IIB in the Cloud
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
PPTX
Vijay Oscon
PDF
Building scalbale cloud native apps with .NET 8
PDF
Zero to Portlet in 20 minutes or less
PPTX
Learning ASP.NET 5 and MVC 6
PPTX
CloudPlatforms-Cloud PLatforms evaluation
PPTX
Node.js Frameworks to watch for in 2019
PPTX
muCon 2017 - 12 Factor Serverless Applications
PDF
Full lifecycle of a microservice
PPTX
Introduction to ASP.NET 5
PDF
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
PPTX
Cloudify 4.6 highlights webinar
Intro to Sails.js
A presentationon SPRING-BOOT and CRUD operation
Easy integration of Bluemix services with your applications
ASP .Net Core SPA Templates
Open shift and docker - october,2014
Connecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
IBM InterConnect 2015 - IIB in the Cloud
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Vijay Oscon
Building scalbale cloud native apps with .NET 8
Zero to Portlet in 20 minutes or less
Learning ASP.NET 5 and MVC 6
CloudPlatforms-Cloud PLatforms evaluation
Node.js Frameworks to watch for in 2019
muCon 2017 - 12 Factor Serverless Applications
Full lifecycle of a microservice
Introduction to ASP.NET 5
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
Cloudify 4.6 highlights webinar
Ad

Recently uploaded (20)

PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PPTX
modul_python (1).pptx for professional and student
PDF
Mega Projects Data Mega Projects Data
PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
PPT
Predictive modeling basics in data cleaning process
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPTX
SAP 2 completion done . PRESENTATION.pptx
PDF
Transcultural that can help you someday.
PPTX
importance of Data-Visualization-in-Data-Science. for mba studnts
PPT
DATA COLLECTION METHODS-ppt for nursing research
PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PDF
Business Analytics and business intelligence.pdf
PPTX
Leprosy and NLEP programme community medicine
PDF
How to run a consulting project- client discovery
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Database Infoormation System (DBIS).pptx
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
modul_python (1).pptx for professional and student
Mega Projects Data Mega Projects Data
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
Predictive modeling basics in data cleaning process
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
SAP 2 completion done . PRESENTATION.pptx
Transcultural that can help you someday.
importance of Data-Visualization-in-Data-Science. for mba studnts
DATA COLLECTION METHODS-ppt for nursing research
Optimise Shopper Experiences with a Strong Data Estate.pdf
Business Analytics and business intelligence.pdf
Leprosy and NLEP programme community medicine
How to run a consulting project- client discovery
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Database Infoormation System (DBIS).pptx
STERILIZATION AND DISINFECTION-1.ppthhhbx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...

LoopbackJS the intro

  • 2. What need to be installed • NodeJS v8.x LTS • VS Code - https://code.visualstudio.com/ • Insomnia REST client - https://insomnia.rest/ • Loopback CLI  [sudo] npm install -g loopback-cli@latest • MySQL Database v5.6 or higher • HeidiSQL / PHPMyAdmin / Sequel Pro
  • 3. Loop what? Let’s talk in Express • The Node.js API Framework. • One of the framework that based from the famous web JavaScript framework, ExpressJS. • Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. • Comply with Open API specification mostly • http://nodeframework.com/index.html#rest-api
  • 6. Framework Modules Category Description Use to… Modules Models Model and API server Dynamically mock-up models and expose them as APIs without worrying about persisting. loopback Abstraction Model data abstraction to physical persistence Connect to multiple data sources or services and get back an abstracted model with CRUD capabilities independent of backing data source. loopback-datasource-juggler Initialization Application initialization Configure data sources, customize models, configure models and attach them to data sources; Configure application settings and run custom boot scripts. loopback-boot Sequencing Middleware execution Configure middleware to be executed at various points during application lifecycle. loopback-phase Data RDBMS and noSQL physical data sources Enable connections to RDBMS and noSQL data sources and get back an abstracted model. •loopback-connector-mongodb •loopback-connector-mysql •loopback-connector- postgresql •loopback-connector-msssql •loopback-connector-oracle •Many others… Integration General system connectors Connect to an existing system that expose APIs through common enterprise and web interfaces •loopback-connector-rest •loopback-connector-soap Components Add-ons to core LoopBack Integrate with pre-built services packaged into components. •loopback-component-push •loopback-component-storage •loopback-component-passport Clients Client SDKs Develop client app using native platform objects (iOS, Android, AngularJS) that interact with LoopBack APIs via REST. •loopback-sdk-ios •loopback-sdk-android •loopback-sdk-angular
  • 7. Data Sources and Connectors
  • 12. Hooking up to real Datasource
  • 13. Auto-migrate / Auto-update 'use strict'; module.exports = function(app) { app.dataSources.<ds name>.autoupdate(‘<modelname>’, err => { if (err) throw err; }); };
  • 14. Establishing relationship • lb relation  1 to 1  1 to many  Many to many • Through table
  • 15. User based model • Build-in model in framework • Basic authentication, ACL and AccessToken ready