Building APIs with LoopBack

Building APIs with LoopBack

1h 47mIntermediate2018-01-09

Authors

Raymond Camden

Raymond Camden

Developer Advocate specializing in mobile-first development

Course details

LoopBack is a powerful, easy-to-use Node.js framework that can help make the process of creating REST-based APIs a bit less tedious. In this course, learn how to efficiently build APIs using LoopBack. Raymond Camden begins by providing a high-level overview of LoopBack, and showing how to install this framework. He then shares how to create APIs using the command-line interface (CLI), explaining how to work with data sources, and how to use and modify the framework's security features. Plus, he demonstrates how to customize LoopBack, filter data, and use validation rules. Raymond wraps up by walking through the code of a basic LoopBack front-end application.

Learning objectives
What is LoopBack?
Models and how they relate to APIs
LoopBack security features
Preventing unauthorized access to an app
Customizing LoopBack
Operation hooks and remote hooks
Creating a front end
Debugging with LoopBack

Skills covered

Node.jsJavaScript FrameworksProjectWeb DevelopmentOpen Source

Concepts

Introduction

  • Welcome
  • What you should know
  • Using the exercise files

Introducing APIs with LoopBack

  • What is LoopBack
  • LoopBack installation
  • Using the CLI to scaffold
  • Running the application

Models

  • Models and how they relate to APIs
  • Creating a model via CLI
  • Testing our model with Explorer

Data Sources

  • What are data sources
  • Connect to Mongo
  • Modifying the in-memory data source to save data

Security

  • What is LoopBack's default security
  • Locking down the app
  • Working with users via Explorer

Customizing LoopBack

  • Understanding remote methods
  • Remote hooks
  • Operation hooks in action
  • Remote methods, remote hooks, or operation hooks

Filtering and Validating Data

  • URL parameter syntax and examples
  • Paging support
  • Alias support
  • Validating our data

Demo LoopBack App

  • Create a front end
  • How it works
  • Debugging

Conclusion

  • Next steps
40,000 Toman