Tutorial by Examples

This example shows how to define a simple model in Sails.js You can generate an empty model file by typing sails generate model car You'll find the new file Car.js in api/models/. Next, you fill in some details. modules.exports = { tableName : 'cars', connection : 'mongodb', attr...

Page 1 of 1