Setup (env:Ubuntu)
- apt-get install npm
- apt install nodejs-legacy
- npm install -g loopback-cli
Create Model
lb model
Delete a model
Delete /common/models/your-model.js and /common/models/your-model.json, then delete the lines referencing your model in /server/model-config.json.
Create Datasource
lb datasource
Files
SchemaUpdate.js (Place it in <loopback-project>/server/boot)
To update models schema back in db on every startup of the server
Postgre DB connector Guide
https://strongloop.com/strongblog/postgresql-node-js-apis-loopback-connector/
DynamoDb
https://github.com/tma-isbx/loopback-connector-dynamodb
npm install tma-isbx/loopback-connector-dynamodb
No model discovery both ways,,, but works if create "lb model" acc to definition of existing dynamoDb table