Skip to content

An attempt to implement DomainModelingMadeFunctional book samples using Typescript and fp-ts

Notifications You must be signed in to change notification settings

MehdiZonjy/domain-modeling-made-functional-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domain Modeling Made Functional TypeScript examples

An attempt to translate Domain Modeling Made Functional code examples to typescript

I'm using the following fp libraries to drive my solution

POST /orders

Payload

{
	"orderId": "order1",
	"customerInfo": {
		"firstName": "mehdi",
		"lastName": "zonjy",
		"emailAddress": "[email protected]",
		"vipStatus":"normal"
	},
	"shippingAddress": {
		"addressLine1": "address 1",
		"addressLine2": "",
		"addressLine3":"",
		"addressLine4": "",
		"city": "some city",
		"zipCode": "12365",
		"state": "DC",
		"country": "aah"
	},
	"billingAddress": {
		"addressLine1": "address 1",
		"addressLine2": "",
		"addressLine3":"",
		"addressLine4": "",
		"city": "some city",
		"zipCode": "44445",
		"state": "DC",
		"country": "aah"
	},
	"lines":[{
		"orderLineId": "orderLine1",
		"productCode": "W1232",
		"quantity": 123
	}],
	"promotionCode": "normal"
}

About

An attempt to implement DomainModelingMadeFunctional book samples using Typescript and fp-ts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published