Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Build a Node.js REST API with LoopBack

via egghead.io

Overview

In this course the developer will learn how to create a LoopBack API and build it out to an API that can be used as a backend for apps. We will start by creating a basic LoopBack API project and gradually enhance it to a production ready API. The API we create defines a few models to persist the data and has custom functionality, validation and hooks added to those models.
After our data structure is defined we will learn how to extend the functionality of LoopBack by using mixins and components. We will also lock our API down using ACL’s and create a mechanism to automatically define the admin and user roles and create our admin user.
The last part of the course will show how how to filter the data stored in the API. We will make the API production-ready by adding unit tests, connecting it to MongoDB and we will show how to deploy the app to now.sh.

Syllabus

  • Initialize a LoopBack Node.js Project through the CLI
  • Create a model to persist data in a Node.js LoopBack API
  • Persist in-memory data to a file when developing Node.js LoopBack API's
  • Setup a development mode in LoopBack API using nodemon
  • Create a relation between two LoopBack models
  • Define a remote method on a LoopBack model
  • Add validation rules to a model in LoopBack API
  • Add unit tests to a LoopBack API project
  • Add Operation Hooks to a LoopBack model
  • Configure ACL’s to protect the LoopBack API
  • Create a boot script to run code at the start of a LoopBack API
  • Create a MongoDB DataSource in LoopBack
  • Create a free database on MongoDB Atlas
  • Filter model data in LoopBack
  • Deploy a LoopBack API project using now.sh

Taught by

Bram Borggreve

Reviews

4.4 rating at egghead.io based on 81 ratings

Start your review of Build a Node.js REST API with LoopBack

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.