# SharedResources

ABP version (opens new window) NuGet (opens new window) NuGet Download (opens new window) Discord online (opens new window) GitHub stars (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

  1. 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
  2. Add DependsOn(typeof(SharedResourcesXxxModule)) attribute to configure the module dependencies. (see how (opens new window))

  3. Add builder.ConfigureSharedResources(); to the OnModelCreating() method in MyProjectMigrationsDbContext.cs.

  4. Add EF Core migrations and update your database. See: ABP document (opens new window).

# Usage

  1. Add permissions to the roles you want.

  2. Create a category.

  3. Create a resource in the category.

  4. Create a resource item in the resource.

  5. Set authorized users of the resource so they can access it.

Categories CreateCategory Resources CreateResource ResourceItems CreateResourceItem

# 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.
  • 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.
Last Updated: 8/26/2022, 9:14:33 AM