{ sailsit }

Sails Js Tutorials for Beginners and Forum

Have a Question?

If you have any question you can ask below or enter what you are looking for!

All posts tagged model

Upload Files – AWS S3

1. Creating SailsJs Project Follow the below tutorial for setting up SailsJs Setting up sails project 2. Creating Controller Use the below command to generate a controller sails generate controller Upload paste the below code in api/controllers/UploadController.js /** * UploadController * * @description :: Server-side logic for managing Uploads * . . . Read more

One to Many Association

In this tutorial we will be covering One-to-One associations in SailsJs Models 1. Creating SailsJs Project Follow the below tutorial for setting up SailsJs Setting up sails project 2. MySQL Database Setup We will be using MySQL DB for this tutorial. You can follow the below tutorial about setting up . . . Read more

Model Functions – Waterline | REST API

SailsJs comes with WATERLINE (ORM) pre-installed, WATERLINE provides some Model functions which are used for querying database We will check usage of these Model functions in this tutorial with example codes 1. Create a Model names Movies using below command sails generate model Movies copy the below code in api/models/Movies.js . . . Read more