Skip to content

moh1434/fastify-kyselyPrisma-template

Repository files navigation

-- you can switch dependencies from dynamicDependenciesToAdd variable inside di-autoload.generator.ts file, you may use process.env inside it also.

if  ts-node ./myFile.ts  does not work for, you can do this:
1) write:  nano ~/.bash_profile  inside the terminal
2) write:  alias esm-node="node --no-warnings --loader ts-node/esm" , save and exit
3) write:  nano ~/.zshrc  inside the terminal
4) write:  alias esm-node="node --no-warnings --loader ts-node/esm" 
5) reload the terminal
then you can use  esm-node ./my-file.ts 


-- Example about Command Query Separation(CQS) principle:
  billing/
    └ useCases/
      └ commands/
          chargeCustomer.command
          refundCustomer.command
      └ queries/ 
          getCustomerById.query
          getAllCustomers.query
          getCharges.query
        
  trading/
    └ useCases/
        └ commands/
            approveOffer.command
            makeOffer.command
            rejectOffer.command
        └ queries/
            getAllOffers.query
      
  catalog/
    └ useCases/
    └ commands/
          addVinyl.command
          updateVinyl.command
          removeVinyl.command
      └ queries/
          getVinylById.query
          getAllVinyl.query
          search.query

--

useful links about the about Command Query Separation(CQS):
1) https://khalilstemmler.com/articles/oop-design-principles/command-query-separation/
2) https://khalilstemmler.com/articles/enterprise-typescript-nodejs/application-layer-use-cases/


note:
when you execute pnpm run test, this file vitestSetupFiles.ts will run once before each test file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published