# GiftCardManagement **Repository Path**: shqgroup_admin/GiftCardManagement ## Basic Information - **Project Name**: GiftCardManagement - **Description**: An abp application module where you can create gift cards and your app user can use them to exchange something. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GiftCardManagement [![NuGet](https://img.shields.io/nuget/v/EasyAbp.GiftCardManagement.Domain.Shared.svg?style=flat-square)](https://www.nuget.org/packages/EasyAbp.GiftCardManagement.Domain.Shared) [![NuGet Download](https://img.shields.io/nuget/dt/EasyAbp.GiftCardManagement.Domain.Shared.svg?style=flat-square)](https://www.nuget.org/packages/EasyAbp.GiftCardManagement.Domain.Shared) [![GitHub stars](https://img.shields.io/github/stars/EasyAbp/GiftCardManagement?style=social)](https://www.github.com/EasyAbp/GiftCardManagement) 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](https://giftcard.samples.easyabp.io) ## Installation 1. Install the following NuGet packages. ([see how](https://github.com/EasyAbp/EasyAbpGuide/blob/master/How-To.md#add-nuget-packages)) * 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 1. Add `DependsOn(typeof(GiftCardManagementXxxModule))` attribute to configure the module dependencies. ([see how](https://github.com/EasyAbp/EasyAbpGuide/blob/master/How-To.md#add-module-dependencies)) 1. Add `builder.ConfigureGiftCardManagement();` to the `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 gift card template. 1. Create a gift card. 1. Handle the gift card consumption distributed event. See the document: [Handling Consumption Event](/docs/Handling-Consumption-Event.md). 1. Try to consume the gift card. ![GiftCards](/docs/images/GiftCards.png) ![BatchCreate](/docs/images/BatchCreate.png) ![Consumption](/docs/images/Consumption.png) ## Roadmap - [ ] Consumption rollback feature. - [ ] Improve management pages. - [ ] Unit tests.