The Sailscasts Blog
Best practices, Tips & Tricks, Updates, ideas, and inspiration from Sailscasts to help developers build and design software.
-
Boring Stack 0.3.0
The Boring JavaScript Stack 0.3.0 is out, it brings an upgrade to Shipright 0.2.0 which brings dynamic injecting assets and chunk splitting strategies
Read more → -
Shipwright 0.1.0
Sails Shipwright 0.1.0 is out, it brings a long requested DX to Sails - Hot Module Replacement & Live Reload.
Read more → -
Boring Stack 0.2.2
The Boring JavaScript Stack 0.2.2 is out, introducing create-sails-generator for a better DX.
Read more → -
Boring Stack 0.2.0
The Boring JavaScript Stack 0.2.0 is out, it brings a better DX for sending Inertia responses and fixed an edge case bug.
Read more → -
Boring Stack 0.1.3
The Boring JavaScript Stack 0.1.3 is out, it brings an amazing DX for handling server-side validation errors and good old flash messages.
Read more → -
sails-mongo 2.1.0
sails-mongo 2.1.0 is out, this minor release brings an upgrade of the MongoDB driver used in the adapter from version 3.7.3 to 6.3.0.
Read more → -
Sails 1.5.6
Sails 1.5.6 is out, it brings displaying the local dev server URL when you lift your Sails project.
Read more → -
Sails 1.5.5
Sails 1.5.5 is out, it brings a fix to the broken custom inspect implementation on sails.helpers.
Read more → -
wish 0.0.7
wish 0.0.7 is out, this release brings Google as an OAuth 2 provider
Read more → -
Announcing the lead maintainer of Sails
Excited to announce that I am now the lead maintainer of the Sails framework.
Read more → -
Comparing Sails and Express: Which Node.js framework is right for your project?
After working with Express for a while, I was introduced to Sails after joining the Sailscasts community. I have come to like Sails and I want to say why in this article.
Read more → -
Rate limiting in Sails
Rate limiting helps you control the rate of incoming requests to an API. In this article we go over how to set up rate limiting in Sails
Read more → -
Sails for Express developers - Routing
Part 1 of the Sails for Express developers series of article aimed at showing how Express developers can use Sails today.
Read more → -
Setting up API monitoring with Treblle in Sails
I recently discovered Treblle - an API monitoring service that let's you monitor your APIs in production. Here is how to set it up in a Sails project.
Read more → -
How I set up end-to-end testing in Sails with Playwright
I have been researching Playwright for a while now and finally decided to take the plunge and set up end-to-end testing in the sailscasts.com codebase with it. Let me show you how I did it.
Read more → -
Introducing docs.sailscasts.com
The vision of Sailscasts is to empower anyone with a basic idea of JavaScript to build fullstack Node.js applications. With the new docs we hope to provide great documentation for the technologies we build to foster this vision
Read more → -
Introducing sailscasts.com 2.0
Super excited to announce a whole new rewrite to sailscasts.com powered by simple technologies
Read more → -
Goodbye Nuxt, hello Inertia in Sails
Alright this is an article I have been looking forward to writing for quite a while now. I have been experimenting on a new way to have it all with a Sails driven codebase and I think I’ve found it.
Read more → -
Sailsconf 2022 is coming
The second Sailsconf - a global conference for the Sails community goes live in a couple of days
Read more → -
Using the paginate query modifier method for pagination
Sails provides a super useful syntactic sugar for paginating Waterline queries. In this article we will see how to get started using it in your applications.
Read more → -
Testing your Sails apps with Japa
Japa is an API-first testing framework. It focuses only on testing Node.js (backend) applications, thus resulting in a fast, small, and simple tests runner.
Read more → -
Modifying Sails log prefix with prefix themes
Sails ship with an elegant logger called captains-log. In this article we will see how to modify your logs prefix with the prefixTheme option.
Read more → -
Disabling the sails global
The sails global gives you access to the running Sails application instance and the properties and methods it exposes. In this article we will see how we can disable it and other ways to access the running Sails application instance.
Read more → -
Creating the Sails dotenv hook
In this article I will discuss why I created the sails-js-hook-dotenv package. We'll see why I needed the package and my learnings as I made it.
Read more → -
How I setup a WebSocket client in Nuxt
Sails makes it easy to setup and use WebSocket. In this article we will look at how I setup a WebSocket client to talk to a Sails API via WebSocket.
Read more → -
How I setup Sails and Tailwind CSS
Tailwind CSS is a utility-first CSS framework that allows you rapidly build modern websites without ever leaving your HTML. Here is how I setup a Sails project to use Tailwind CSS.
Read more → -
How to simulate latency in a Sails action
Having trouble testing your loading state when making a request to your local Sails API from your local frontend? Here is how to simulate latency...
Read more → -
Announcing guppy - the Tinker tool for Javascript developers
Say ahoy to guppy - the needed tinker tool for every backend Javascript developer. You will find yourself having this desktop app open as you do any backend Javascript development.
Read more → -
How to specify a different Sails port
So you think Sails run on port 1337 by default? Wrong! In this article we will see how Sails really handles the default running port and how you can change it.
Read more → -
Tales from the very first Sailsconf
Sailsconf 2021 was an outstanding and unprecendented success, here is the gist...
Read more → -
Sailsconf is coming
The very first Sailsconf - a global conference for the Sails community goes live tomorrow
Read more → -
Build a URL shortener with Sails
A URL shortener is basically a tool that you give a long URL and it gives a shorter URL for convenience. In this article we will build a basic URL shortener using Sails.
Read more → -
Return or throw your response
Actions2 are a more modern way for authoring Sails actions. In this article we will look at how we can simply return or throw Sails responses.
Read more → -
Sails development with Docker and Docker Compose
Docker makes it easy to set up and run a development environment and also simplifies the deployment of your applications. In this article we will see how to setup a Sails development workflow with Docker and Docker Compose.
Read more → -
Understanding Waterline projections
Projections make for faster performance and better security when sending back records to a client by allowing you to select or omit fields to be returned.
Read more → -
Sails 1.4.2 release
Sails 1.4.2 release fixes the cyclic dependency warning in Node versions >= 14
Read more → -
How to configure ESLint and Standard JS in a Sails project
Linting improves readability and consitency in a codebase. It is a must have for teams to enforce coding style guides and standards, fix typos, find potential bugs across a codebase. In this article, we will be setting up ESLint and StandardJS in a Sails project.
Read more → -
Testing Sails Applications with Mocha and SuperTest
Testing or automated testing helps ensure code quality and serves as a measure to prevent you or other members of your team from shipping code with defects aka bugs to production. In this article we will look at setting up automated tests in Sails applications using Mocha and Supertest.
Read more → -
How to paginate your Sails APIs
Pagination helps splits the dataset being returned to a user into smaller chunks and return the rest as requested. In this article we will look at a couple of options on implementing pagination in your Sails APIs.
Read more → -
The Sailscasts Company launches
Sailscasts will be built by the folks at The Sailscasts Company - a company founded by Kelvin Omereshone dedicated to building and helping others build on Sails
Read more → -
Understanding Sails helpers
Sails provides you with a mechanism to share code in different places in your applications. This mechanism is called helpers. In this article we will dive into what helpers are and how to begin using them in your Sails application.
Read more → -
One way to organize Sails routes
Your custom routes definitions can easily get out of hand in a large Sails application. In this article we are going to take a look at a pattern I use in large Sails applications for organizing custom routes definitions.
Read more → -
Understanding Sails routes
Routes are URLs that a web client use to communicate with your application. In this article you will learn how Sails handles routes and how you can use them in your application.
Read more → -
Understanding Sails policies and best practices
Policies are versatile tools in Sails for authorization and access control. They give you the ability to execute some logic before an action is run for the purpose of ascertaining if the request should continue or not. This article will introduce policies in Sails, explain how to go about creating policies in Sails and the best practices to observe when doing so.
Read more → -
Migrating your Sails actions to actions2
Actions are Sails mechanisms that are responsible for responding and handling requests to your Sails applications. This article will introduce you to the actions2 style of writing actions in Sails and how to start using it in your Sails applications.
Read more → -
The Sailscasts Blog is live
The Sailscasts Blog is meant to augment Sailscasts with quality articles for developers to step up their game with production ready server-side JavaScript and of course tips and tricks on Sails.js.
Read more →