Egghead Instructor Bram Borggreve

Bram Borggreve

Hedonist, traveler, software developer. I have a great passion for JavaScript and work every day with LoopBack and Angular. Other passions are music, beer and traveling.



Support Bram's Free Lessons
become a member today

Browse Bram Borggreve's lessons.

showing 4 lessons...

Use create-react-native-app to Set Up a Simple React Native App

Persist in-memory data to a file when developing Node.js LoopBack API's

Create a model to persist data in a Node.js LoopBack API

Initialize a LoopBack Node.js Project through the CLI

Use create-react-native-app to Set Up a Simple React Native App

0:55 react

React Native requires a lot of initial set up to get an app going. In this lesson, we will use create-react-native-app to do this initial setup for us. We will install create-react-native-app globally and create a new project.

After creating the project we will run the development server which will print a QR code on the terminal. We will install the app called Expo Client on our mobile phone and use it to scan the QR code.

This will load our app on our mobile phone in development mode. When make adjustments to our project the changes will be reflected on our phone. If we use console.log the messages will be printed in our terminal.

Download the Expo Client from App Store or Google Play

Persist in-memory data to a file when developing Node.js LoopBack API's

0:43 node

In this lesson you will learn how to persist the data from the memory connector. As the name suggests, the memory connector stores the data in memory. This means that if you restart the server, the data is gone. In development mode it can be useful to store this data in a file, so it gets persisted between server restarts, and it can be easily inspected.

Create a model to persist data in a Node.js LoopBack API

3:01 node

In this lesson you will learn what a LoopBack model is, you will create a Product model using the LoopbBack CLI. The product model will be based off the built-in PersistedModel which gives it basic functionality like Create, Ready, Update, Delete and some more. Using the API Explorer you can interact with the new model, store, retrieve, edit and delete the product data.

Initialize a LoopBack Node.js Project through the CLI

1:17 node

LoopBack is a framework built on top of Express for creating APIs. It allows you to create end-to-end REST APIs that can access data from many data sources such as MondoDB, PostgreSQL, MySQL or other REST APIs.

In this lesson you will learn how to install loopback-cli and create a new LoopBack API project. After creating the basic LoopBack project through the CLI, running the server will give us access to the project and API Explorer urls. The user model will be available to us because user authentication was enabled.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?