Foal TS framework version 1.8 is officially released!Foal TS - May release (version 1.8)This version brings mainly three new features.Interfaces and generic classes (such as TypeORM repositories) can now be injected into services and controllers using FoalTS dependency injection system.Example of serviceInjection of the concrete instancesDocumentation : https://foalts.gitbook.io/docs/topic-guides/architecture/services-and-dependency-injection#usage-with-interfaces-and-generic-classesServices accept an optional boot method for initializationExample of \"boot\" methodDocumentation: https://foalts.gitbook.io/docs/topic-guides/architecture/initialization#the-services-boot-methodGroup, Permission and UserWithPermissions extend BaseEntity (TypeORM) so as to add new methods (find, save, etc) and UserWithPermissions has a new method withPerm which allows to retrieve all users with a given permission.Permission extends BaseEntityRetrieve all users with the permission \"perm1\"Documentation: https://foalts.gitbook.io/docs/topic-guides/authentication-and-access-control/groups-and-permissions#baseentity-inheritanceFoal, in a few words, it's a Node.js framework:written in TypeScriptprovided with batteries included (Auth, OpenAPI, GraphQL, ORM, CLI, scripts, file storage)and with a simple and intuitive architecture (no magic, no over-engineering).And the must: it has more than 11,000 lines of documentation.https://foalts.orghttps://github.com/FoalTS/foalhttps://foalts.gitbook.io/docs/#TypeScript #JavaScript #NodeJS #FoalTS #DI #JWT #permissions
Submitted May 06, 2020 at 09:45AM by Loic_Poullain
No comments:
Post a Comment