# GiftCardManagement

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 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 (opens new window)

# Installation

  1. Install the following NuGet packages. (see how (opens new window))

    • 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 (opens new window))

  3. Add builder.ConfigureGiftCardManagement(); 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 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.
Last Updated: 8/26/2022, 9:14:33 AM