Skip to content

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

License

Notifications You must be signed in to change notification settings

EasyAbp/GiftCardManagement

Repository files navigation

GiftCardManagement

ABP version NuGet NuGet Download Discord online GitHub stars

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

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

Stars

Watchers

Forks

Packages