
Version 2.7 of Foal has been released! Here are the improvements that it brings : https://foalts.org/blog/2021/12/12/version-2.7-release-notes

Version 2.6 of Foal has been released! Here are the improvements that it brings.
Support of the array
value for AJV coerceTypes
option

Version 2.5 of Foal has been released! Here are the improvements that it brings.
"npm run develop"
watches config files
In previous versions of Foal, the develop
command did not restart the server when a configuration file was changed. This was annoying and is the reason why, starting with v2.5, new projects generated by the CLI will watch configuration files.
"createOpenApiDocument"
accepts an optional serviceManager
If you use createOpenApiDocument
, in a shell script for example, the function accepts an optional serviceManager
parameter from this version.
This can be useful if your OpenAPI decorators access controller properties whose values are manually injected.
You can find the complete release notes of this version here: https://foalts.org/blog/2021/06/11/version-2.5-release-notes
This tutorial describes how to manage configuration with:
— JSON, YAML and JS files,
— .env files,
— and environment variables.
It also explains how to use FoalTS type safety feature.

Version 2.3 of Foal has been released! On the agenda: Prisma documentation, GraphiQL, .env.local files and authentication improvements.
In a few words, Foal is a Node.JS framework for building web applications with:
- an elegant and straightforward code (no over-engineering),
- many features out-of-the-box (validation, CLI, ORM, Swagger generation, stateful and stateless for both SPA and SSR, AWS S3 integration, etc),
- and the support of TypeScript.
You can find the release notes of this version here: https://foalts.org/blog/2021/04/22/version-2.3-release-notes

This article presents the improvements to the session system in FoalTS version 2.
The new syntax can be used either with cookies or with the Authorization
header. It adds the following new features:
- query all sessions of a given user
- query all connected users
- force logout of a specific user
- flash sessions
- session ID regeneration
- anonymous and authenticated sessions
FoalTS also simplifies stateful CSRF protection so that all it takes is one setting to enable it.
Link to the article: https://foalts.org/blog/2021/04/08/whats-new-in-version-2-part-4

In this tutorial you will learn how to create a basic web application with FoalTS. The demo application is a simple to-do list with which users can view, create and delete their tasks.
Plan
1. Installation
2. Introduction
3. The Todo Model
4. The Shell Script create-todo
5. The REST API
6. Validation and Sanitization
Text version: https://foalts.org/docs/tutorials/sim...
Source code: https://foalts.org/simple-todo-list-s...
Discord channel: https://discord.gg/QUrJv98

This article presents some improvements introduced in version 2 of FoalTS:
- the JWT utilities to manage secrets and RSA keys,
- the JWT utilities to manage cookies,
- and the new stateless CSRF protection.
Link to the article: https://foalts.org/blog/2021/03/11/whats-new-in-version-2-part-3