Skip to content

Commit

Permalink
Completed README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Apr 25, 2020
1 parent 9a545df commit 4efd7a9
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions README.md
@@ -1,2 +1,77 @@
# SharedResources
An abp application module that allows users to share resources with each other.

## Getting Started

* Install with [AbpHelper](https://github.com/EasyAbp/AbpHelper.GUI)

Coming soon.

* Install Manually

1. Install `EasyAbp.SharedResources.Application` NuGet package to `MyProject.Application` project and add `[DependsOn(SharedResourcesApplicationModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.Application.Contracts` NuGet package to `MyProject.Application.Contracts` project and add `[DependsOn(SharedResourcesApplicationContractsModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.Domain` NuGet package to `MyProject.Domain` project and add `[DependsOn(SharedResourcesDomainModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.Domain.Shared` NuGet package to `MyProject.Domain.Shared` project and add `[DependsOn(SharedResourcesDomainSharedModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.EntityFrameworkCore` NuGet package to `MyProject.EntityFrameworkCore` project and add `[DependsOn(SharedResourcesEntityFrameworkCoreModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.HttpApi` NuGet package to `MyProject.HttpApi` project and add `[DependsOn(SharedResourcesHttpApiModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.HttpApi.Client` NuGet package to `MyProject.HttpApi.Client` project and add `[DependsOn(SharedResourcesHttpApiClientModule)]` attribute to the module.

1. Install `EasyAbp.SharedResources.MongoDB` NuGet package to `MyProject.MongoDB` project and add `[DependsOn(SharedResourcesMongoDbModule)]` attribute to the module.

1. (Optional) If you need MVC UI, install `EasyAbp.SharedResources.Web` NuGet package to `MyProject.Web` project and add `[DependsOn(SharedResourcesWebModule)]` attribute to the module.

1. Add `options.ConventionalControllers.Create(typeof(SharedResourcesApplicationModule).Assembly);` to `Configure<AbpAspNetCoreMvcOptions>(options => { ... });` in your host module (It is usually Web project or HttpApi.Host project).

1. Add `builder.ConfigureSharedResources();` to OnModelCreating method in `MyProjectMigrationsDbContext.cs`.

1. Add EF Core migrations and update your database. See: [ABP document](https://docs.abp.io/en/abp/latest/Tutorials/Part-1?UI=MVC#add-new-migration-update-the-database).

## Usage

1. Add permissions to the roles you want.

1. Create a category.

1. Create a resource in the category.

1. Create a resource item in the resource.

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

![Categories](doc/images/Categories.png)
![CreateCategory](doc/images/CreateCategory.png)
![Resources](doc/images/Resources.png)
![CreateResource](doc/images/CreateResource.png)
![ResourceItems](doc/images/ResourceItems.png)
![CreateResourceItem](doc/images/CreateResourceItem.png)

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

* Use [EShop](https://github.com/EasyAbp/EShop) module to sell your courses.
* When a user buys a course, give him access to related resources.
* Set the free part of resource items to `Public resource item`.

## Roadmap

- [ ] Explorer.
- [ ] Pages for admin to manage users' categories and resources.
- [ ] Unit tests.
Binary file added doc/images/Categories.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/CreateCategory.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/CreateResource.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/CreateResourceItem.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/ResourceItems.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/Resources.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4efd7a9

Please sign in to comment.