8000 GitHub - carbonteq/hexapp
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

carbonteq/hexapp

Repository files navigation

Hexagonal Architecture boilerplate

Installation

pnpm i @carbonteq/hexapp
npm i @carbonteq/hexapp
yarn add @carbonteq/hexapp

Usage

Entity Declaration

import { BaseEntity <
6777
span class="pl-kos">} from "@carbonteq/hexapp/domain/base.entity.js";

class User extends BaseEntity {
  constructor(readonly name: string) {
    super();
  }

  serialize() {
    return {
      ...super._serialize(),
      name: this.name,
    };
  }
}
0