Creating a RESTful API with Node.JS

What’s LoopBack?

We’re going to use LoopBack to create our API, mostly because it simplifies the whole process. LoopBack is a framework that asks us for the costumizable values (such as names) and does the rest. Keep it simple, you know?

Project Creation

You should have Node.JS and a bash terminal installed, both of which you can learn how install on my last article. The first thing we’re going to do is create an empty folder and navigate into it using our terminal.

npm install -g loopback-cli
lb
lb model
 node .
http://localhost:3000/explorer

--

--

Enthusiastically curious and raised with entrepeneurship values, I often wander outside my confort zone to explore other topics.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tiago Lucas

Tiago Lucas

Enthusiastically curious and raised with entrepeneurship values, I often wander outside my confort zone to explore other topics.