Skip to content

morishjs/matechs-effect-doc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

description
And write better end to end software, so you can sleep at night!

How to use Effect!

Getting Super Powers

You will aquire knowledge on how to build software in a purely functional manner, you will leverage a particular kind of algebraic effects called environmental effects in order to structure your code in a better way enabling you to test each individual component in an isolated way and making your modules reusable and composable.

We are not cheating, neither using magic tricks! By leveraging functional programming principles we have developed a set of libraries that enrich the fp-ts ecosystem with the functionalities that you may find in a library like ZIO in the Scala ecosystem.

The latest development in the core TypeScript language allow us to take environment usage even further compared to what ZIO can achieve, namely TypeScript has a very good support for intersection types and this makes environment usage wonderful.

Installation

So let's get the superpowers, bootstrap a new npm project and install basic dependencies:

$ mkdir my-project
$ yarn init -y
$ yarn install fp-ts fp-ts-contrib @matechs/effect
$ yarn install -D typescript

License

The library is released with an MIT license and the codebase is fully open-source at:
https://github.com/mikearnaldi/matechs-effect

As with any good library there is a commercial project that support the development and maintainance, if you want to know more find us at https://www.matechs.com/ we are a digital accelerator looking for smart founders!

Notes

Docs are meant to be only for introduction to the architecture but are still outdated, for proper usage refer to the test & demo packages in each package in the github repo.

Project Config

You will need to scaffold a classic npm package with TypeScript configured strictly, additionally we advice configuration of jest or another testing framework of your choice: you can find examples at https://github.com/mikearnaldi/matechs-effect where you can "copy" both tsconfig & jest configs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published