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

GiftCardManagement

ABP version NuGet NuGet Download GitHub stars

An abp application module where you can create gift cards and your app user can use them to exchange something.

Online Demo

We have launched an online demo for this module: https://giftcard.samples.easyabp.io

Installation

  1. Install the following NuGet packages. (see how)

    • EasyAbp.GiftCardManagement.Application
    • EasyAbp.GiftCardManagement.Application.Contracts
    • EasyAbp.GiftCardManagement.Domain
    • EasyAbp.GiftCardManagement.Domain.Shared
    • EasyAbp.GiftCardManagement.EntityFrameworkCore
    • EasyAbp.GiftCardManagement.HttpApi
    • EasyAbp.GiftCardManagement.HttpApi.Client
    • (Optional) EasyAbp.GiftCardManagement.MongoDB
    • (Optional) EasyAbp.GiftCardManagement.Web
  2. Add DependsOn(typeof(GiftCardManagementXxxModule)) attribute to configure the module dependencies. (see how)

  3. Add builder.ConfigureGiftCardManagement(); 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 gift card template.

  3. Create a gift card.

  4. Handle the gift card consumption distributed event. See the document: Handling Consumption Event.

  5. Try to consume the gift card.

GiftCards BatchCreate Consumption

Roadmap

  • Consumption rollback feature.
  • Improve management pages.
  • Unit tests.

About

An abp application module where you can create gift cards and your app user can use them to exchange something.

Resources

License