nestjs-cqrs-saga
Nestjs application with CQRS pattern and SAGA
File Explorer
Download Latest Version (.zip)- database.module.ts
- database.provider.ts
- add-product-to-catalog.handler.ts
- add-product-to-catalog.command.ts
- catalog.entity.ts
- catalog.provider.ts
- catalog.store.ts
- catalog.module.ts
- product.aggregate.ts
- index.ts
- modification-product.handler.ts
- register-product.handler.ts
- remove-product.handler.ts
- modification-product.command.ts
- register-product.command.ts
- remove-product.command.ts
- product.controller.ts
- product-modification.dto.ts
- product-registration.dto.ts
- product.entity.ts
- product-was-added.handler.event.ts
- product-was-added.event.ts
- product.provider.ts
- get-all-products.handler.query.ts
- get-by-sku-product.handler.query.ts
- index.ts
- get-all-products.query.ts
- get-by-sku-product.query.ts
- product.saga.ts
- product.service.ts
- product.store.ts
- produdct.module.ts
- app.controller.spec.ts
- app.controller.ts
- app.module.ts
- app.service.ts
- main.ts
- app.e2e-spec.ts
- jest-e2e.json
- .gitignore
- docker-compose.yml
- LICENSE
- nest-cli.json
- nodemon-debug.json
- nodemon.json
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- tslint.json
- yarn.lock
# Installation Guide
1. Get the code
git clone https://github.com/amehat/nestjs-cqrs-saga
Downloads the entire project code from GitHub to your computer.
cd nestjs-cqrs-saga
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
$ docker-compose up
Runs the command against the services defined in the compose file.
$ docker-compose down
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Node.js
EasyPrerequisites
$ npm install
Downloads and installs the libraries listed in package.json.
$ npm run start
Starts the development/run server.
$ npm run start:dev
Starts the development/run server.
$ npm run start:prod
Starts the development/run server.
$ npm run test
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
