http://rockalabs.com/ 

LET'S BUILD TOGETHER

SailsJS

Introduction to Web API and Realtime

What's Sails?

LET'S BUILD TOGETHER

SailsJS is a framework for build Web Server using architectural pattern MVC

100% Javascript

Any database

Autogenerate APIs

Frontend agnostic

Support websockets

security policies

Stack used by Sails

LET'S BUILD TOGETHER

Solid Backend

Flexible asset pipeline

Autogenerate APIs

LET'S BUILD TOGETHER

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 :

Autogenerate APIs

LET'S BUILD TOGETHER


$ sudo npm install -g sails

First Install Sails


$ sails generate api <name-api> 

Generate API


$ sails generate new <name-project>

Create a project

Autogenerate APIs

LET'S BUILD TOGETHER


$ sails lift

Run Sails

About the Model attributes

'string', 'integer', 'boolean', 'date','datetime', 'array', 'json'

Support Web Sockets

LET'S BUILD TOGETHER

LET'S BUILD TOGETHER

http://rockalabs.com

jdmorales@gmail.com

John Darwin Morales

Frontend Developer

Introduction to Web Components

By John Darwin Morales González

Introduction to Web Components

  • 1,647