Skip to content

Domain modeling in TypeScript, using `fp-ts` ecosystem.

Notifications You must be signed in to change notification settings

ruizb/domain-modeling-ts

Repository files navigation

Domain modeling in TypeScript

After watching the talk "Domain Modeling Made Functional" from Scott Wlaschin, I got inspired to write a series of articles about Domain Driven Design (DDD for short) in TypeScript. Since this talk is about DDD using Functional Programming (FP), I chose to use the fp-ts ecosystem because, as far as I know, it's the most mature FP stack in TypeScript.

The articles are available on dev.to:

Requirements

This project was built using Node v15.2 and npm v7. If you have nvm, you can use the nvm use command at the root of the project.

Install

npm ci

Run

To run the code that uses the first method (fp-ts + newtype-ts), you can use the following command:

npm run run-method-1

To run the code of the second method (fp-ts + io-ts), you can run:

npm run run-method-2

About

Domain modeling in TypeScript, using `fp-ts` ecosystem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published