LoopBack 3 – Simple API with MongoDB Example

Expose your MongoDB NoSQL as a REST service with LoopBack 3 (Node.js Open API Framework)

This post is continuation of previous post. So if you want to start from beginning, read that one as well.

Follow this link to create a MongoDB Docker container 🙂

You can find LoopBack 3 project in the following repository. After clonning switch to mongodb branch 🙂 or run the following command.

git checkout mongodb


MongoDB Docker Container Exercise

You can up and run MongoDB Docker container in your local machine and later connect from mysql CLI to query your collections.

Run the following command in your terminal to up and run a MongoDB NoSQL Docker container.

docker run -p 27017:27017 --name mongoDbTest -d mongo:latest

Run the below code in the terminal to connect to running container.

docker exec -it mongoDbTest bash

Run the below code in the terminal after connecting to container.


Follow the following link for more details