Thoughts: Loopback (description) assists us in building custom remote methods and makes it easy to connect our models with a data source! Before we jump into Loopback, lets get our local database set up!
Setting up your local workstation
I have seen that the biggest problem is understanding the execution context, in other words, what order methods (functions) execute. Remember that the order in which execution occurs does NOT read top-to-bottom, rather it jumps around depending on when processes have finished.
2 Rudimentary Coding PrinciplesKeep your functions SMALL!
That means your function does one thing only! Enough said.Handle EVERY error!
There are usually 3 different types of errors: