YoVDO

Build a Node.js REST API with LoopBack

Offered By: egghead.io

Tags

Node.Js Courses REST APIs Courses API Development Courses Model Development Courses

Course Description

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

Related Courses

Web Engineering II: Developing Mobile HTML5 Apps
Technische Hochschule Mittelhessen via iversity
Introduction to MongoDB using the MEAN Stack
MongoDB via edX
Desarrollo de aplicaciones avanzadas con Android
Universidad Nacional Autónoma de México via Coursera
Utilisez des API REST dans vos projets web
IBM via OpenClassrooms
Extend Your Application with REST Services
Microsoft via edX