Skip to content

Commit 4536445

Browse files
chore: update readme for new version
1 parent 9253db7 commit 4536445

2 files changed

Lines changed: 39 additions & 22 deletions

File tree

β€ŽREADME-VIETNAMESE.mdβ€Ž

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -180,21 +180,23 @@ CΓ³ gΓ¬ Δ‘αΊ·c biệt khiαΊΏn cho template nΓ y trở nΓͺn khΓ‘c biệt so vα»›i
180180

181181
```
182182
/Infrastructure
183-
β”œβ”€β”€ /Constants # HαΊ±ng sα»‘ tΔ©nh cho tαΊ§ng Infrastructure
183+
β”œβ”€β”€ /Common # CΓ‘c thΓ nh phαΊ§n dΓΉng chung ở tαΊ§ng Infrastructure
184184
β”‚
185-
β”œβ”€β”€ /Data # EF Core + tαΊ§ng persistence
185+
β”œβ”€β”€ /Constants # CΓ‘c hαΊ±ng sα»‘ tΔ©nh cho tαΊ§ng Infrastructure
186+
β”‚
187+
β”œβ”€β”€ /Data # EF Core + tαΊ§ng lΖ°u trα»― dα»― liệu (persistence)
186188
β”‚ β”œβ”€β”€ /Configurations/ # CαΊ₯u hΓ¬nh entity bαΊ±ng Fluent API
187-
β”‚ β”œβ”€β”€ /Converters/ # Bα»™ chuyển Δ‘α»•i kiểu (vd: Ulid ↔ string)
188-
β”‚ β”œβ”€β”€ /Interceptors/ # EF Core interceptor (audit, logging)
189-
β”‚ β”œβ”€β”€ /Migrations/ # File migration cα»§a EF Core
189+
β”‚ β”œβ”€β”€ /Converters/ # Bα»™ chuyển Δ‘α»•i kiểu (vΓ­ dα»₯: Ulid ↔ string)
190+
β”‚ β”œβ”€β”€ /Interceptors/ # Interceptor cα»§a EF Core (audit, logging)
191+
β”‚ β”œβ”€β”€ /Migrators/ # CΓ‘c file migration cα»§a EF Core
190192
β”‚ β”œβ”€β”€ /Repositories/ # Triển khai repository
191-
β”‚ β”œβ”€β”€ /Seeders/ # Seed dα»― liệu khởi tαΊ‘o database
192-
β”‚ └── /Settings/ # IOptions cho database
193+
β”‚ └── /Seeders/ # Dα»― liệu seed để khởi tαΊ‘o cΖ‘ sở dα»― liệu
193194
β”‚
194-
β”œβ”€β”€ /Services # Triển khai service tαΊ§ng Infrastructure
195+
β”œβ”€β”€ /Services # CΓ‘c triển khai service ở tαΊ§ng Infrastructure
195196
β”‚
196-
β”œβ”€β”€ DependencyInjection.cs # Đăng kΓ½ service Infrastructure vΓ o DI
197-
└── Infrastructure.csproj # File project Infrastructure
197+
β”œβ”€β”€ DependencyInjection.cs # Đăng kΓ½ cΓ‘c service cα»§a Infrastructure vΓ o DI
198+
└── Infrastructure.csproj # File project
199+
198200
```
199201

200202
```
@@ -259,12 +261,19 @@ BΖ°α»›c thα»© 1 :point_up: :
259261

260262
TαΊ‘o 1 file tΓͺn appsettings.Development.json ở ngoΓ i cΓΉng cα»§a tαΊ§ng Api, Sao chΓ©p nα»™i dung cα»§a appsettings.example.json vΓ o file mα»›i tαΊ‘o vΓ  sau Δ‘Γ³ Δ‘iều chỉnh lαΊ‘i cΓ‘c cαΊ₯u hΓ¬nh theo cΓ‘ch cα»§a bαΊ‘n.
261263

262-
Chỉnh sα»­a connection string cα»§a PostgreSQL (Bởi vΓ¬ template nΓ y Δ‘ang sα»­ dα»₯ng PostgreSQL).
264+
Template hα»— trợ **nhiều hệ quαΊ£n trα»‹ cΖ‘ sở dα»― liệu quan hệ** vΓ  cho phΓ©p chuyển Δ‘α»•i giα»―a chΓΊng thΓ΄ng qua cαΊ₯u hΓ¬nh.
265+
266+
Hiện tαΊ‘i, provider mαΊ·c Δ‘α»‹nh lΓ  **PostgreSQL**.
263267

264268
```json
265269
"DatabaseSettings": {
266-
"DatabaseConnection": "Host=localhost;Username=[your_username];Password=[your_password];Database=example"
267-
},
270+
"Provider": "PostgreSQL",
271+
"Relational": {
272+
"PostgreSQL": {
273+
"ConnectionString": "Host=localhost;Port=5432;Username=postgres;Password=1;Database=the_database"
274+
}
275+
}
276+
}
268277
```
269278

270279
CαΊ­p nhαΊ­t migration lΓͺn database

β€ŽREADME.mdβ€Ž

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,21 +167,22 @@ What makes this Clean Architecture template stand out from the rest on Github?
167167

168168
```
169169
/Infrastructure
170+
β”œβ”€β”€ /Common # Shared infrastructure-level components
171+
β”‚
170172
β”œβ”€β”€ /Constants # Static constants for Infrastructure layer
171173
β”‚
172174
β”œβ”€β”€ /Data # EF Core + persistence layer
173175
β”‚ β”œβ”€β”€ /Configurations/ # Fluent API entity configurations
174176
β”‚ β”œβ”€β”€ /Converters/ # Type converters (e.g., Ulid ↔ string)
175177
β”‚ β”œβ”€β”€ /Interceptors/ # EF Core interceptors (audit, logging)
176-
β”‚ β”œβ”€β”€ /Migrations/ # EF Core migration files
178+
β”‚ β”œβ”€β”€ /Migrators/ # EF Core migration files
177179
β”‚ β”œβ”€β”€ /Repositories/ # Repository implementations
178-
β”‚ β”œβ”€β”€ /Seeders/ # Seed data for database initialization
179-
β”‚ └── /Settings/ # Database IOptions
180+
β”‚ └── /Seeders/ # Seed data for database initialization
180181
β”‚
181-
β”œβ”€β”€ /Services # Infrastructure service implementations
182+
β”œβ”€β”€ /Services # Infrastructure service implementations
182183
β”‚
183-
β”œβ”€β”€ DependencyInjection.cs # Registers Infrastructure services into DI
184-
└── Infrastructure.csproj # Project file
184+
β”œβ”€β”€ DependencyInjection.cs # Registers Infrastructure services into DI
185+
└── Infrastructure.csproj # Project file
185186
186187
```
187188

@@ -247,12 +248,19 @@ The first step :point_up: :
247248

248249
Create a appsettings.Development.json file at root of Api layer and just copy the content of appsettings.example.json to the file then Modify configurations in your case.
249250

250-
Modify PostgreSQL connection string (this template is using PostgreSQL currently).
251+
This template supports **multiple relational database providers** and allows switching between them via configuration.
252+
253+
Currently, the default provider is **PostgreSQL**.
251254

252255
```json
253256
"DatabaseSettings": {
254-
"DatabaseConnection": "Host=localhost;Username=[your_username];Password=[your_password];Database=example"
255-
},
257+
"Provider": "PostgreSQL",
258+
"Relational": {
259+
"PostgreSQL": {
260+
"ConnectionString": "Host=localhost;Port=5432;Username=postgres;Password=1;Database=the_database"
261+
}
262+
}
263+
}
256264
```
257265

258266
Update migrations to your own database.

0 commit comments

Comments
Β (0)