Skip to content

EasyAbp/GiftCardManagement

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.

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.

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

Stars

Watchers

Forks