An abp application module that provides general user review service. For example, a user can review a product he has bought with text, pictures and star-rating.
-
Install the following NuGet packages. (see how)
- EasyAbp.ReviewManagement.Application
- EasyAbp.ReviewManagement.Application.Contracts
- EasyAbp.ReviewManagement.Domain
- EasyAbp.ReviewManagement.Domain.Shared
- EasyAbp.ReviewManagement.EntityFrameworkCore
- EasyAbp.ReviewManagement.HttpApi
- EasyAbp.ReviewManagement.HttpApi.Client
- (Optional) EasyAbp.ReviewManagement.MongoDB
- (Optional) EasyAbp.ReviewManagement.Web
-
Add
DependsOn(typeof(ReviewManagementXxxModule))
attribute to configure the module dependencies. (see how) -
Add
builder.ConfigureReviewManagement();
to theOnModelCreating()
method in MyProjectMigrationsDbContext.cs. -
Add EF Core migrations and update your database. See: ABP document.
-
Add permissions to the roles you want.
-
Create authorization handlers for a type of entity that needs user's reviews. (see the product entity review creation authorization handler sample)
-
Try to create a review.
- More friendly UI.
- Unit tests.