https://github.com/fdhhhdjd/ddd-order-ticket
🎫 This is project coding simple Domain-Driven Design
https://github.com/fdhhhdjd/ddd-order-ticket
ddd-patterns node-js postgresql
Last synced: about 1 year ago
JSON representation
🎫 This is project coding simple Domain-Driven Design
- Host: GitHub
- URL: https://github.com/fdhhhdjd/ddd-order-ticket
- Owner: fdhhhdjd
- Created: 2024-11-13T02:36:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-01T06:48:37.000Z (over 1 year ago)
- Last Synced: 2025-04-12T23:12:53.934Z (about 1 year ago)
- Topics: ddd-patterns, node-js, postgresql
- Language: JavaScript
- Homepage: https://profile-forme.com
- Size: 114 KB
- Stars: 8
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
## This is project coding simple Domain-Driven Design
# DDD (Domain-Driven Design)

# Structure
## Vietnamese 🇻🇳
```
src/
├── domain/ # Logic và quy tắc nghiệp vụ
│ ├── entities/ # Các thực thể nghiệp vụ (User, Ticket, ...)
│ ├── repositories/ # Các giao diện truy cập dữ liệu
│ └── services/ # Các dịch vụ nghiệp vụ
│
├── application/ # Xử lý ứng dụng, quản lý các trường hợp sử dụng
│ └── use-cases/ # Các trường hợp sử dụng cụ thể của hệ thống
│
├── infrastructure/ # Các thành phần hỗ trợ và kết nối
│ ├── database/ # Kết nối và cấu hình cơ sở dữ liệu
│ └── repositories/ # Các triển khai cụ thể của repositories
│
├── interfaces/ # Lớp giao diện, API cho người dùng hoặc hệ thống
│ ├── controllers/ # Các bộ điều khiển logic để xử lý yêu cầu
│ ├── routes/ # Các tuyến API
│ └── middlewares/ # Middleware (xác thực, ghi nhật ký, ...)
│
├── shared/ # Các tài nguyên dùng chung
│ └── constants/ # Các hằng số dùng chung
| └── .../ # Còn rất nhiều
│
└── server.js # Tệp khởi động ứng dụng chính
```
## English 🇬🇧
```
src/
├── domain/ # Business logic and rules
│ ├── entities/ # Business entities (User, Ticket, ...)
│ ├── repositories/ # Interfaces for data access
│ └── services/ # Business services
│
├── application/ # Application processing, managing use cases
│ └── use-cases/ # Specific use cases of the system
│
├── infrastructure/ # Supporting components and connections
│ ├── database/ # Database connections and configurations
│ └── repositories/ # Concrete implementations of repositories
│
├── interfaces/ # Interface layer, API for users or systems
│ ├── controllers/ # Logic controllers for handling requests
│ ├── routes/ # API routes
│ └── middlewares/ # Middleware (auth, logging, ...)
│
├── shared/ # Shared resources
│ └── constants/ # Shared constants
| └── .../ # Still remaining many folder shared
│
└── server.js # Main application startup file
```
## Tài Khoản Donate li Cf để có động lực code cho anh em tham khảo 😄😄

## Mk: NGUYEN TIEN TAI
## STK: 1651002972052
## Chi Nhánh: NGAN HANG TMCP AN BINH (ABBANK)
## SUPORT CONTACT: [https://profile-forme.com](https://profile-forme.com/).