Skip to content

christianmahardhika/kezbek-backend

Repository files navigation

kezbek-backend

Kezbek is a type of application that allows users to earn rewards or cash back when they make purchases at participating merchants. These apps often have partnerships with a variety of retailers, restaurants, e-commerce and other businesses, and offer users a percentage of their purchase price back in the form of cash or other rewards.

Feature

  • Loyalty program for customer
  • Reward for customer
  • Coupon Cashback for customer
  • Seemless integration with merchant (partner)
  • Seemless integration with payment gateway (e-wallet) by customer MSISDN

Currently, we are integrating with dummy payment gateway and dummy merchant

ERD

Data Structure

Architecture

Architecture

How to run it locally

before please install docker engine and docker compose

install latest nodeJS

# run docker compose to setup the stacks that need by app

docker compose -f ./Deploy/docker-compose.yml up -d

**Notes** before we run, please uncomment notification service in docker-compose.yml env variable section

if docker compose is finished, you can run the app by click this url the OPEN API documentation at

localhost:3001/api-document (loyalty service) or localhost:3002/api-document (promo service) or localhost:3003/api-document (transaction service)

# development
$ npm run start

# watch mode
$ npm run start:dev

Library