Our great sponsors
-
Waterline
An adapter-based ORM for Node.js with support for mysql, mongo, postgres, mssql (SQL Server), and more
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
In this post, we have learnt how to create APIs with Node.js framework Sails.js. You can extend this application by adding authentication and deploying it to any provider of your choice. you can find the source code for this article on GitHub. Below are a few more resources to help:
Waterline - An ORM for Node.js used for a data layer of your application faster and more scalable.
Sails.js or Sails is a real-time MVC framework for building scalable production-ready Node.js applications. Created by Mike McNeil in 2015, Sails take inspiration from Ruby on Rails MVC framework. Sails come out of the box with features like:
We will be using FaunaDB. You can check out the fauna documentation on how to get started with Fauna. Sails comes with an official adapter for faunaDB for Waterline which we will use, you can install the adapter using the command below: