SailsJS
Introduction to Web API and Realtime
SailsJS is a framework for build Web Server using architectural pattern MVC
100% Javascript
Any database
Autogenerate APIs
Frontend agnostic
Support websockets
security policies
Solid Backend
Flexible asset pipeline
What's a REST API?
Represent a type of communication based a protocol
Client / Server. Where information is accessed through a Interface.
GET, POST, PUT, DELETE
Methods :
$ sudo npm install -g sails
First Install Sails
$ sails generate api <name-api>
Generate API
$ sails generate new <name-project>
Create a project
$ sails lift
Run Sails
About the Model attributes
'string', 'integer', 'boolean', 'date','datetime', 'array', 'json'
http://rockalabs.com
jdmorales@gmail.com