LoopBack 4 TodoList Application TutorialNote: This page was generated from the loopback-next/examples/todo-list/README.md.

@loopback/example-todo-list

This is an extended tutorial that builds on top of @loopback/example-todo.

Overview

This tutorial demonstrates how to create a set of APIs for models that arerelated to one another.

todo-tutorial-overview

Setup

If you’re following from the tutorial in @loopback/example-todo, you can jumpstraight to our first step:Add TodoList model

If not, you’ll need to make sure you have a couple of things installed before weget started:

  • Node.js at v8.9 or greaterNext, you’ll need to install the LoopBack 4 CLI toolkit:
  1. npm i -g @loopback/cli

We recommend that you start with thetodo tutorial if you’re notfamiliar with LoopBack4, but if you are and don’t want to start from scratchagain, you can use the LoopBack 4 CLI tool to catch up to where this tutorialwill continue from:

  1. lb4 example todo-list

It should be noted that this tutorial does not assume theoptional geo-coding stephas been completed. Whether the step has been completed or not, the content andthe steps listed in this tutorial remain the same.

Tutorial

Once you’re ready to start the tutorial, let’s begin byadding a TodoList model

Steps

Try it out

If you’d like to see the final results of this tutorial as an exampleapplication, follow these steps:

  • Run the lb4 example command to select and clone the todo repository:
  1. lb4 example todo-list
  • Switch to the directory.
  1. cd loopback4-example-todo-list
  • Finally, start the application!
  1. $ npm start
  2. Server is running at http://127.0.0.1:3000

Feel free to look around in the application’s code to get a feel for how itworks. If you’re interested in how it’s been built or why we do things a certainway, then continue on with this tutorial!

Bugs/Feedback

Open an issue in loopback-nextand we’ll take a look!

Contributions

Tests

Run npm test from the root folder.

Contributors

Seeall contributors.

License

MIT