At this time, we have the necessary structure to start the development of our API.
We will now use the command line to create the models of our application. We will build two models: one model for the product/motorcycle and another for the user/consumer.
Open terminal/shell inside the chapter-06 folder and type the following command:
slc loopback:model
Fill in the following information for motorcycle model, as shown in the following screenshot:
Fill in the property name:
Property name: image ? Property type: string ? Required? Yes ? Default value[leave blank for none]: Property name: make ? Property type: string ? Required? Yes ? Default value[leave blank for none]: Property name: description ? Property type: string ? Required? Yes ? Default value[leave blank for none]: Property name: model ...