TypeScript application created adhering to the rules of Domain-Driven Design.
It’s variation of bin packing problem solution. The truck with unlimited number and load of packs arrives daily in the morning. The warehouseman has to repack all packs to courier’s cars. The maximum load of single courier car is 200 kg. Application optimize the number of needed courier’s cars to minimum. All actions connected with packs and warehouseman are kept in memory during the object lifecycle and we have access to them.
- to show that it’s possible to write code in TypeScript adhering to the rules of DDD.
- simple to understand (there are no repositories, no unnecessary lines of code).
- to show that it’s possible to implement IoC without using Dependency Injection Container.
- I always wondered if it’s possible: my question in stackoverflow.
Unit tests:
npm test
Intergration tests:
npm run-script integration-test