# SharedResources
(opens new window) (opens new window) (opens new window) (opens new window) (opens new window)
An abp application module that allows users to share resources with each other.
# Online Demo
We have launched an online demo for this module: https://sharedres.samples.easyabp.io (opens new window)
# Installation
Install the following NuGet packages. (see how (opens new window))
- 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 (opens new window))Add
builder.ConfigureSharedResources();
to theOnModelCreating()
method in MyProjectMigrationsDbContext.cs.Add EF Core migrations and update your database. See: ABP document (opens new window).
# Usage
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.
# Application Scenario
# Video Sharing Sites
- Enable users to create their own categories and resources.
- Enable users to decide who has access to resources.
# Free Download Sites
- Add categories with the
Set as a common category
configuration. - Add resource items with the
Public resource item
configuration.
# Paid Knowledge Market
- Add categories with the
Set as a common category
configuration. - Set the free part of resource items to
Public resource item
. - Use EShop (opens new window) module to sell your courses, when a user buys a course, give him access to related resources.
# Roadmap
- [ ] Explorer.
- [ ] Pages for admin to manage users' categories and resources.
- [ ] Unit tests.