Skip to content

Api Rest with Nest + Hexagonal Architecture + DDD & CQRS.

Notifications You must be signed in to change notification settings

mapeveri/typescript-ddd-cqrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8296023 · Feb 21, 2025
Mar 12, 2024
Dec 21, 2024
Nov 25, 2023
Feb 20, 2025
Feb 21, 2025
Apr 13, 2024
May 2, 2023
Dec 16, 2024
Feb 5, 2025
Oct 1, 2024
Dec 17, 2024
Dec 6, 2023
Dec 2, 2023
Apr 25, 2024
Feb 13, 2025
Jul 21, 2024
Feb 5, 2025
Feb 5, 2025
Nov 25, 2023
Aug 25, 2024
Feb 5, 2025

Repository files navigation

Typescript-ddd-cqrs backend

Api Rest with Nest + Hexagonal Architecture + DDD & CQRS.

Development

Configuration for development.

Configuration

  1. Copy .env.example to .env and configure it.

  2. Execute docker compose:

    docker compose up
  1. Run migrations:
    docker compose run app npm run mikroorm migration:up
  1. Create user with google (check oauth2 section). It's to get a token from google and it allow you to use the endpoint /api/v1/auth/login to log in to the application.

Running

After running docker compose up, the application will be available at http://localhost:4000

Migrations

To generate migrations run the next command:

  docker compose run app npm run mikroorm migration:create

To execute migrations run the next command:

  docker compose run app npm run mikroorm migration:up

Oauth2

To obtain a test token, go to Google OAuth Playground (https://developers.google.com/oauthplayground) and select 'Use your own OAuth credentials'. Then, use the Google OAuth2 API v2.

Consume async domain events

To consume async domain events you need to run the next command:

  make run-consume-domain-events

Deployment with Kubernetes

Follow the readme in .k8s/README.md

About

Api Rest with Nest + Hexagonal Architecture + DDD & CQRS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages