Git Product home page Git Product logo

customer-rewards-service's Introduction

Customer Rewards Service

The Customer Rewards Service is a C++ application that provides rewards to eligible customers based on their channel subscriptions. It interacts with an EligibilityService to determine the customer's eligibility and then offers appropriate rewards if the customer is eligible.

Table of Contents

Requirements

To build and run this project, you need the following tools and libraries:

  • CMake (version 3.10 or higher)
  • C++ compiler that supports C++17
  • GoogleTest and GoogleMock (included as FetchContent in the CMakeLists.txt)

Installation

  1. Clone the repository to your local machine:
git clone git clone https://oauth2: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@github.com/skartikey/customer-rewards-service.git
cd customer-rewards-service
  1. Build the project using CMake:
mkdir build
cd build
cmake ..
make

This will generate the CustomerRewardsService executable.

Usage

  1. Run the CustomerRewardsService executable:
./CustomerRewardsService
  1. The application will prompt you to enter the customer's account number and channel subscriptions.

  2. Based on the eligibility determined by the EligibilityService, the application will display the rewards available to the customer.

Testing

The project includes unit tests for the RewardsService using GoogleTest and GoogleMock. To run the tests, use the following command:

./RewardsServiceTest

Contributing

Contributions to this project are welcome. If you find any issues or want to add new features, feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.

customer-rewards-service's People

Contributors

skartikey avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.