All Projects → 0xb4lamx → nestjs-boilerplate-microservice

0xb4lamx / nestjs-boilerplate-microservice

Licence: MIT license
Nestjs Microservice boilerplate: apply DDD, CQRS, and Event Sourcing within an event driven architecture

Programming Languages

typescript
32286 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to nestjs-boilerplate-microservice

Eshoponcontainersddd
Fork of dotnet-architecture/eShopOnContainers in full DDD/CQRS design using my own patterns
Stars: ✭ 126 (-53.33%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Bifrost
This is the stable release of Dolittle till its out of alpha->beta stages
Stars: ✭ 111 (-58.89%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Ultimate Backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
Stars: ✭ 978 (+262.22%)
Mutual labels:  cqrs, ddd, eventstore, nestjs
eventuous
Minimalistic Event Sourcing library for .NET
Stars: ✭ 236 (-12.59%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Eventflow.example
DDD+CQRS+Event-sourcing examples using EventFlow following CQRS-ES architecture. It is configured with RabbitMQ, MongoDB(Snapshot store), PostgreSQL(Read store), EventStore(GES). It's targeted to .Net Core 2.2 and include docker compose file.
Stars: ✭ 131 (-51.48%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Todomvc Ddd Cqrs Eventsourcing
Implementation of basic Todo app via tastejs/todomvc in C#/Typescript with eventsourcing, cqrs, and domain driven design
Stars: ✭ 134 (-50.37%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Nestjs Cqrs Starter
NestJS CQRS Microservices Starter Project
Stars: ✭ 80 (-70.37%)
Mutual labels:  cqrs, ddd, eventstore, nestjs
Aggregates.net
.NET event sourced domain driven design model via NServiceBus and GetEventStore
Stars: ✭ 261 (-3.33%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Eventflow
Async/await first CQRS+ES and DDD framework for .NET
Stars: ✭ 1,932 (+615.56%)
Mutual labels:  cqrs, ddd, eventstore, eventsourcing
Eventhorizon
CQRS/ES toolkit for Go
Stars: ✭ 961 (+255.93%)
Mutual labels:  cqrs, ddd, eventsourcing
Restairline
DDD+CQRS+EventSourcing+Hypermedia API+ASP.NET Core 3.1+Masstransit+terraform+docker+k8s
Stars: ✭ 243 (-10%)
Mutual labels:  cqrs, ddd, eventsourcing
nbb
.Net Building Blocks
Stars: ✭ 98 (-63.7%)
Mutual labels:  cqrs, ddd, eventsourcing
Nestjs Cqrs Starter
Nestjs-cqrs API
Stars: ✭ 25 (-90.74%)
Mutual labels:  cqrs, ddd, nestjs
workflow
Functional CQRS Eventsourcing Engine
Stars: ✭ 22 (-91.85%)
Mutual labels:  cqrs, eventstore, eventsourcing
Eventsourcing
A library for event sourcing in Python.
Stars: ✭ 760 (+181.48%)
Mutual labels:  cqrs, ddd, eventsourcing
Equinoxproject
Full ASP.NET Core 5 application with DDD, CQRS and Event Sourcing concepts
Stars: ✭ 5,120 (+1796.3%)
Mutual labels:  cqrs, ddd, eventstore
Event Sourcing Castanha
An Event Sourcing service template with DDD, TDD and SOLID. It has High Cohesion and Loose Coupling, it's a good start for your next Microservice application.
Stars: ✭ 68 (-74.81%)
Mutual labels:  cqrs, ddd, eventstore
Quiz
Example real time quiz application with .NET Core, React, DDD, Event Sourcing, Docker and built-in infrastructure for CI/CD with k8s, jenkins and helm
Stars: ✭ 100 (-62.96%)
Mutual labels:  cqrs, ddd, eventsourcing
Goes
Go Event Sourcing made easy
Stars: ✭ 144 (-46.67%)
Mutual labels:  cqrs, ddd, eventsourcing
Eventstore
The stream database optimised for event sourcing
Stars: ✭ 4,395 (+1527.78%)
Mutual labels:  cqrs, eventstore, eventsourcing

Description

Microservice boilerplate based on NestJS v7, built with TypeScript. Commitizen friendly

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. This project cover both, running on a containerized environment using Docker, or on your local machine.

Guidelines

Setup

Docker Environment

This section will cover the steps to follow for a containerized version of this project.

Prerequisites

Installation

(cd scripts/ && sh build.sh)

The build script Will:

  • Create private network for containers.
  • Configure and deploy MYSQL container.
  • Configure and deploy Adminer container.
  • Configure and deploy EventStore container.
  • Configure and deploy nestjs-boilerplate container.
  • Connect containers to private network.
  • Enables hot-reloading by mounting working directories inside nestjs-boilerplate container.
  • Create and mount data directory to mysql container for persistence under $HOME/mysql-data-dir.
  • Create and mount data directory to EventStore container for persistence under $HOME/eventstore-data-dir.

Usage

Access

  • EventStore:
    • credentials:

      User Password
      admin changeit
  • Adminer
    • Form

      Server User Password Database
      sql-db root root b2h-db
  • Microservice Docker Container
        sudo docker exec -it devtest bash

Clean up

Soft clean up

(cd scripts/ && sudo sh cleanup.sh)

The cleanup script soft Will:

  • Remove private network.
  • Stop and remove MYSQL container.
  • Stop and remove Adminer container.
  • Stop and remove EventStore container.

Hard clean up

#both commands are equivalent
#option1 
(cd scripts/ && sudo sh cleanup.sh -h)
#option2
(cd scripts/ && sudo sh cleanup.sh --hard)

The cleanup script hard Will:

  • Remove private network.
  • Stop and remove MYSQL container.
  • Stop and remove Adminer container.
  • Stop and remove EventStore container.
  • Delete Mysql data directory.
  • Delete EventStore data directory.

local Environment

This section will cover the steps to follow for a local version of this project.

Prerequisites

PS: in order to start receiving events from the EventStore, you should enable projections. (disabled by default)

Installation

$ npm install

Database setup

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# debug mode
$ npm run start:debug

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Built With

  • Docker - Containerization technology
  • npm - Dependency Management
  • Nest

Future Goals

Add tests;

Contributing

You are welcome to contribute to this project, just open a PR.

License

MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].