Expose your MySQL Database as a REST service with LoopBack 3 (Node.js Open API Framework)
This post is continuation of previous post https://kenanhancer.com/2019/09/09/loopback-3-simple-api-example/
So if you want to start from beginning, read that one as well.
Follow this link https://kenanhancer.com/2019/09/12/mysql-docker-container-exercise/ to create a MySQL container 🙂
LoopBack MySQL example will not start wihout running the following code in MySQL Database container. So, run the following command in it.
ALTER USER root IDENTIFIED WITH mysql_native_password BY 'password';
You can find LoopBack 3 project in the following repository. After clonning switch to mysql branch 🙂 or run the following command.
git checkout mysql