Search code examples
jqueryhtmlnode.jssails.jsintel-xdk

How to use only the REST API of Sails.js as a backend for a Hybrid HTML5 App


I am developing a Group Chat App using Intel XDK (App Framework). I see lot of examples on creating a chat application on web, but never came across using Sails's REST API as backend only service which can be used within a HTML5 app.

If you have any insights about the same, please do advise me.


Solution

  • Sails also provides option to skip front end things by using the arguments --no-frontend

    Example: sails new my-api --no-frontend

    It will produce the following folder structure

    enter image description here