Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

SharedResources

ABP version NuGet NuGet Download GitHub stars

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

Installation

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

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

  4. Add EF Core migrations and update your database. See: ABP document.

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.

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 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.

About

An abp application module that allows users to share resources with each other.

Resources

License