Skip to content

Sample (and incomplete) implementation of the Specification pattern in Node.js + TypeORM

Notifications You must be signed in to change notification settings

joanna-liana/specification-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Specification pattern

Sample (and incomplete) implementation of the Specification pattern in Node.js + TypeORM. Take a look at ProductsService to get the idea of the usage.

Please bear in mind that the overall product setup is quick-and-dirty, NOT production ready.

Since this repo is my playground, there other experiments included:

  • TypeORM child entities
  • integration tests setup with Testcontainers and swc (also extracted into this gist)

How to run this project

  • npm i
  • docker-compose up
  • npm run seed && npm start

About

Sample (and incomplete) implementation of the Specification pattern in Node.js + TypeORM

Topics

Resources

Stars

Watchers

Forks