Skip to main content

Tài liệu

1. Backend

    • Kiến trúc hao hao Clean. Chủ yếu cũng có Presentation (API Controller), Businees (Application), Domain (Entity), Infras (DbContext + Seed + lib liên quan kỹ thuật). Bỏ qua repository (Có vẻ khác với Clean)
    • Phù hợp với dự án cỡ nhỏ và vừa. Ko to quá. Ko bé quá. Auth Server ở chung với Resource Server luôn.
    • Lấy ý tưởng từ project base backend của Giáo MinhABP Framework. Mong muốn là có cái base tự xây, nhẹ hơn và giảm thiểu được project/folder trong src code so với 2 cái trên một tí.  
    • C# ASP .NET 8 + SQL Server
    • OpenidDict để lấy cơ chế access/refresh token.
    • Hangfire để chạy job.
    • ASP NET Core Identity để xử lý chỗ User, Role. Per thì tự định nghĩa và dùng như claim.
    • Dùng Permission Attribute để check Authorize với API
1.1 Migration

Mở terminal tại folder root và chạy lệnh 

dotnet ef migrations add InitMigration --project syll.be.infrastructure.data --startup-project syll.be --output-dir Migrations
dotnet ef database update --project syll.be.infrastructure.data --startup-project syll.be --output-dir Migrations

Project chạy tại http://localhost:5187/swagger/index.html

2. Thiết kế demo

2.1 Admin

 

z7156843969327_f9bc83bcbb0924bd38b47e8142ac615d.jpg

z7156844007413_47307540e149e24511f11910e778f769.jpg

z7156844007423_b0653c05e64b348e700e5de0428855a9.jpg

z7156844007439_b2df0f4bf48b0f2c2664ec9feffbb5a0.jpg

2.2 Cán bộ giảng viên