In this chapter we will build an API to store any type of product, in this case a classic model of motorcycle, and store comments/feedback from users of this motorcycle. The result will look like the following screenshot:
First let's install the LoopBack framework:
Open your terminal/shell and type the following command:
npm install strongloop -g
Open your terminal/shell and type the following command:
slc loopback
Enter the name: chapter-06 for the directory option.
Choose the empty-server (An empty LoopBack API, without any
configured models or datasources) option.
Don't worry about the end of the output, we will explain this in the next topic.
The result will be the following structure of folders and files:
The structure is pretty simple; almost all configurations from LoopBack are inside JSON files, as we can see for component-config.json, config.json, datasources.json...