Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minericefield/ddd-onion-lit
https://github.com/minericefield/ddd-onion-lit
authentication clean-architecture ddd ddd-architecture hexagonal-architecture layered-architecture nestjs onion-architecture typeorm typescript
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/minericefield/ddd-onion-lit
- Owner: minericefield
- Created: 2024-01-04T13:25:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-25T16:11:14.000Z (12 months ago)
- Last Synced: 2024-11-13T21:48:59.731Z (2 months ago)
- Topics: authentication, clean-architecture, ddd, ddd-architecture, hexagonal-architecture, layered-architecture, nestjs, onion-architecture, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 315 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ddd-onion-lit
Implementing onion architecture.
# Concept
- [[DDD] Tactical Design Patterns Part 1: Domain Layer](https://dev.to/minericefield/ddd-tactical-design-patterns-part-1-domain-layer-j38)
- [[DDD] Tactical Design Patterns Part 2: Application Layer](https://dev.to/minericefield/ddd-tactical-design-patterns-part-2-application-layer-e14)
- [[DDD] Tactical Design Patterns Part 3: Presentation/Infrastructure Layer](https://dev.to/minericefield/ddd-tactical-design-patterns-part-3-presentationinfrastructure-layer-2e4f)# use case model
![](doc/use%20case%20model.png)# domain model
![](doc/domain%20model.png)# Development
##### For mysql.
```
docker compose up -d
```
Mapped port is 3306.##### Install dependencies.
```
yarn install
```##### Launch app.
```
yarn start:dev
```
Check it out at [localhost:3000/swagger](http://localhost:3000/swagger) .##### If you want to create example users.
```
yarn start:commander SeedUser
```
You can login by `[email protected]` .# Other implementation approaches
- [Generate the aggregate root from the factory](https://github.com/minericefield/ddd-onion-lit/tree/variations/user-factory)