An abp application module that allows users to share resources with each other.
-
Install the following NuGet packages. (see how)
- EasyAbp.SharedResources.Application
- EasyAbp.SharedResources.Application.Contracts
- EasyAbp.SharedResources.Domain
- EasyAbp.SharedResources.Domain.Shared
- EasyAbp.SharedResources.EntityFrameworkCore
- EasyAbp.SharedResources.HttpApi
- EasyAbp.SharedResources.HttpApi.Client
- (Optional) EasyAbp.SharedResources.MongoDB
- (Optional) EasyAbp.SharedResources.Web
-
Add
DependsOn(typeof(SharedResourcesXxxModule))
attribute to configure the module dependencies. (see how) -
Add
builder.ConfigureSharedResources();
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 a category.
-
Create a resource in the category.
-
Create a resource item in the resource.
-
Set authorized users of the resource so they can access it.
- Enable users to create their own categories and resources.
- Enable users to decide who has access to resources.
- Add categories with the
Set as a common category
configuration. - Add resource items with the
Public resource item
configuration.
- Add categories with the
Set as a common category
configuration. - Set the free part of resource items to
Public resource item
. - Use EShop module to sell your courses, when a user buys a course, give him access to related resources.
- Explorer.
- Pages for admin to manage users' categories and resources.
- Unit tests.