Node.Js: Building REST APIs with Sails.js(v1.0)
4.0 (77 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
3,201 students enrolled

Node.Js: Building REST APIs with Sails.js(v1.0)

The complete guide to build Resful APIS with Sails.js(v1.0), Mysql, and MongoDB
4.0 (77 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
3,201 students enrolled
Created by Haider Malik
Last updated 3/2019
English
English [Auto-generated]
Current price: $11.99 Original price: $179.99 Discount: 93% off
4 days left at this price!
30-Day Money-Back Guarantee
This course includes
  • 2 hours on-demand video
  • 5 articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to Udemy's top 3,000+ courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Build Complete Rest Apis In SailsJs
  • Learn Authentication In SailsJs

  • Learn how to use multiple Datastores in SailsJs

  • Learn and Understand SailsJs in Depth
Course content
Expand all 45 lectures 02:06:05
+ Getting Setup
7 lectures 16:37
Installing Nodejs
00:01
Source Code
00:09

I will teach you what is sails.js and why you should use sailsjs to build rest apis

Preview 01:47

In this video, you are going to learn how to create new sails project using sails-cli

Creating Sails Project
02:01

In this video, you are going to learn the directory structure of sails.js

Understanding Sails Directory Structure
04:12

In this video, you are going to learn how to add restful routing in sails.js

Preview 04:09

I will teach you what are shortcut routes in sails.js and how to work with shortcut routes

Preview 04:18
+ Debugging Sailsjs Application
3 lectures 03:53

I will teach you how to debug the sailsjs app to webstorm

Debugging In Webstorm
01:44

I will teach you how to debug the sails.js app to VS Code

Debugging In VS Code
01:01

I will show you how to debug the sails.js app using chrome web browser

Debugging In Chrome
01:08
+ Datastores in Sails.js
5 lectures 10:17
Installing Mysql
00:09

You are going to connect sails.js application to Mysql

Preview 03:24
Installing MongoDB
00:01

You are going to learn how to integrate sailsjs application to MongoDB

Connecting Sails.js App to MongoDB
03:55

You will learn how automigrate works in sails.js

Understanding Automigrate in Sails.js
02:48
+ CRUD(Create, Read, Update, Delete) Companies
9 lectures 23:25

I will explain the schema diagram of our demo application

Module Introduction
00:56

You will learn how to create new model in Sails.js

Creating model in SailsJs
01:39

I will show you how to create new record in sails.js model

Challenge: Create new Company
03:47

I am going to show you how to create new record in company model

Solution: Create new Company
04:38

You are going to learn how to use Async/Await with Sails.js model

Async/Await with Models
02:25

You are going to learn how to use find method of sails.js model

Find All Companies
02:18

You are going to learn how to find single record from models in sails.js

FindOne Company
01:55

You will learn how to update the record in sails.js

Update Company By Id
03:35

You are going to learn how to delete the company by id

Delete Company By Id
02:12
+ Adding Relationship between Models
9 lectures 36:50

I am going to teach how to implement one way association in sails.js

Challenge: One way Association
02:22

You will learn how to solve the challenge of one way association

Solution: One way Association
03:54

I am going to show you how to create new record in sails.js

Creating Jobs
08:25

I will show you how to find all the records

Find All Jobs
02:32

I am going to show you how to implement one to many relationship

Adding One to Many Relationship
04:26

I am going to show you how to add relationship between Job and company

Adding Relation with Job and Company
03:29

I am going to show you how to populate jobs with company

Populating Jobs with Companies
00:42

I am going to show you how to implement many to many relationship in sails.js

Adding Many to Many Relationship
04:39

I am going to show you how to create and find all the applications

Create and Find All Applications
06:21
+ Authentication in Sails.js
11 lectures 35:10

I am going to teach you what is JWT authentication in sails.js

JWT Authentication Workflow
00:53

I am going to show you how to create new user model in sails.js

Creating User Model
03:03

I am going to show you how to add validations with joi package

Adding Validations
04:57

You are going to learn how to save user to the db

Saving User to DB
01:22

I am going to show you how to encrypt the user password

Encrypt the User Password
04:24

I am going to show you how to implement the login method in sails.js

Implementing Login
03:58

You will learn how to create JSON web token in sails.js

Creating JSON Web Token
04:02

I am going to teach you how to create new policy in sails.js

Creating IsLoggedIn Policy
06:25

I am going to show you how to apply policies to all routes in sails.js

Applying Policy to All Endpoints in Sails
01:56

You are going to learn how policies work in sails.js

Understanding Policies in Sailsjs
01:50

I am going to teach you how to add relation with company and user

Adding Relation with Company and User
02:20
+ Bonus
1 lecture 00:01
Learn React and Redux by building real world application
00:01
Requirements
  • Basic knowledge of Javascript is Important
  • Basic knowledge of NodeJs is Important
Description

Sails.js is a JavaScript back-end framework that makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture. It's especially good for building chat, real-time dashboards, or multiplayer games; but you can use it for any web application project - top to bottom.

Whether you’re a front-end developer seeking to expand your back-end knowledge, or a server-side developer unfamiliar with using Node and JavaScript on the back-end, the common denominator we all share is a desire to create web applications. Sails is designed to be compatible with whatever strategy you have for building your front-end, whether it be  Angular, Backbone, iOS/ObjC, Android/Java, or even a “headless” app that just offers up a raw API to be used by another web service or your developer community. Sails is great for building everyday back-end apps that handle HTTP requests and WebSockets.

What can you build with Sails.js?

Hybrid Web Applications - applications that combine a JSON API with server-rendered views, that is, in addition to an API, this type of application can serve dynamic (i.e. personalized) HTML pages, making it suitable for use cases which demand SEO (search engine optimization). These applications often use a client-side JavaScript framework (e.g. Angular, Ember, React, etc.), but they don’t necessarily have to. Examples of hybrid web applications you might be familiar with are Twitter, GitHub, and Basecamp.

Pure APIs – applications that fulfill requests from one or more independent front-end user interfaces. We say independent” because the front-end doesn’t have to be delivered by the same server that is providing the JSON API, or even by a server at all. This umbrella category includes SPAs (single-page apps), native mobile applications (e.g. iOS and Android), native desktop applications (e.g. OSX, Windows, Linux), and the venerated IoT (Internet of Things). Many mobile-first products (think Uber, Instagram, Snapchat) start off as pure APIs.

So why Sails.js?

  • 100% JavaScript
  • Rock solid foundation
  • Front-end Agnostic
  • Auto generated REST APIs 
  • Use any popular database
  • Powerful associations 
  • Standardization
  • Realtime with WebSockets
  • Sails generators 
  • Reusable security Policies

What you will learn in this course?

  • What is Sails.js and Why you should use Sails.js
  • Setting up Sails.js project from scratch
  • Debugging Sails.js project in Webstorm
  • Debugging Sails.js project in VS Code
  • Debugging Sails.js project in Chrome
  • Understanding Sails.js in Depth
  • Datastores in Sails.js
  • How to perform CRUD operation in Sails.js
  • How to add relationship between models
  • Building APIS from scratch
  • Authentication in Sails.js


Who this course is for:
  • Programmers looking to learn SailsJs
  • Developers who wants to learn REST API Development in NodeJs
  • Developers who have researched SailsJs but have had trouble understanding some concepts