Skip to main content
CourseFlix

Loopback 4: Modern ways to Build APIs in Typescript & NodeJs

5h 14m 32s
English
Paid

LoopBack 4 is the latest iteration of the highly-extensible, open-source Node.js framework that simplifies the creation of dynamic, end-to-end REST APIs with minimal coding. This course will guide you through building amazing APIs using modern technologies like NodeJs, Typescript, MySQL, and MongoDB.

Why Choose LoopBack 4?

  • Extensibility and Flexibility: Built with a brand-new core in TypeScript/ES2017, LoopBack 4 offers superior extensibility and flexibility.

  • Effortless API Creation: Easily define REST APIs and manage requests/responses with the new creation experience.

  • Advanced Programming Model: Featuring Dependency Injection, Components, Mixins, Repositories, and more for unmatched extensibility.

  • GraphQL Interface: Use OpenAPI-to-GraphQL to create a GraphQL interface for any REST API.

Core Features of LoopBack

  • Create dynamic end-to-end REST APIs with minimal coding.
  • Access data from major relational databases, MongoDB, SOAP, and REST APIs.
  • Manage model relationships and apply access controls for complex APIs.
  • Utilize separable components for file storage, third-party login, and OAuth 2.0.

What You Will Learn

  • Getting started with TypeScript and LoopBack 4.
  • Fundamentals of TypeScript, including Generics, Decorators, Classes, and Interfaces.
  • CRUD Operations: Create, Read, Update, Delete with LoopBack 4.
  • Build RESTful APIs and generate OpenAPI documentation.
  • Work with multiple data sources like MySQL and MongoDB.
  • Understand model relationships: One-to-One, One-to-Many, Many-to-One.
  • Deep dive into Repositories, Controllers, Dependency Injections, and Design Patterns.
  • Implement authentication and authorization in LoopBack 4.
  • Use external components and expose GraphQL API with LoopBack 4.

Requirements

  • Basic knowledge of JavaScript is important.
  • Some familiarity with TypeScript is required.
  • A good understanding of NodeJs is necessary.

Who This Course is For

  • NodeJs developers wanting to build REST APIs with LoopBack 4.
  • Existing LoopBack 3 developers exploring modern RESTful APIs with TypeScript.
  • TypeScript developers interested in building REST APIs with NodeJs, MySQL, and MongoDB.

Course Outcomes

  • Build REST APIs using NodeJs, TypeScript, MySQL, and MongoDB.
  • Implement authentication and authorization in LoopBack 4.
  • Effectively test REST APIs built with LoopBack 4.

About the Author: udemy

udemy thumbnail
By connecting students all over the world to the best instructors, Udemy is helping individuals reach their goals and pursue their dreams. Udemy is the leading global marketplace for teaching and learning, connecting millions of students to the skills they need to succeed. Udemy helps organizations of all kinds prepare for the ever-evolving future of work. Our curated collection of top-rated business and technical courses gives companies, governments, and nonprofits the power to develop in-house expertise and satisfy employees’ hunger for learning and development.

Watch Online 46 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 46 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Introduction to Loopback
All Course Lessons (46)
#Lesson TitleDurationAccess
1
Introduction to Loopback Demo
02:45
2
Getting started with Loopback 4
09:10
3
What are Generics
02:35
4
Typescript Setup and Installation
03:58
5
Generic Function
03:08
6
Generic Function with T Array Type
02:30
7
Generic Function with Multiple Type Variables
02:23
8
Generic Constraints
02:20
9
Generic Interfaces to describe Object Properties
04:47
10
Create Interface to describe Function Types
03:18
11
Generic Classes and Interfaces
02:12
12
Method Decorators
03:04
13
Arguments in Method Decorator
04:32
14
Configurable Decorator using Decorator Factory
01:47
15
Property Decorator
04:29
16
Parameter Decorator
02:16
17
Class Decorator
00:39
18
What is Loopback Model
02:22
19
Creating your first Loopback Model
03:57
20
Creating In-memory Datasource
03:52
21
Creating Repository for CRUD Operations
03:18
22
Creating Controller to define REST API Operations
04:02
23
Test Loopback REST APIs using Explorer
03:43
24
Digging into Loopback Repository
04:00
25
Installing MysQL
04:45
26
Connecting Mysql Database with Loopback 4
14:03
27
Set Primary key Id property to Auto-increment
02:30
28
Implement HasMany Relationship between Models
20:36
29
Implement BelongsTo Relationship
11:12
30
Implement HasOne Relationship
14:35
31
What is JSON Web Token Authentication
03:02
32
Creating User model with Signup Endpoint
07:51
33
Validate User Credentials for Signup
08:24
34
Introduction to Dependency Injection
08:21
35
Encrypt User Password by Injecting Service
12:31
36
Creating Login Route
05:27
37
Verify User Credentials while Login
17:27
38
Creating JSON Web Token
09:41
39
Refactoring Binding Keys to separate file
11:56
40
Creating JWT Authentication Strategy
15:56
41
Apply Authentication on protected routes
09:14
42
Creating Admin Role with Permissions
17:19
43
Set Permissions for Admin Role
11:22
44
Verify User Permissions in Authorize Interceptor
16:59
45
Connecting Loopback 4 with MongoDB Database
06:38
46
Testing Loopback 4 Application
03:36
Unlock unlimited learning

Get instant access to all 45 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription