Skip to content

jinal1788/checkout-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Store Checkout System

Welcome to DiUS Computer Store Checkout System! This TypeScript implementation allows you to handle various pricing rules for a variety of products in our store. Whether it's a special deal on Apple TVs, a discount on Super iPads, or a free VGA adapter bundled with MacBook Pro purchases, our checkout system has you covered

Getting Started

Prerequisites

Node.js(https://nodejs.org/en) installed on your machine.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/checkout-system.git
  1. Navigate to the project directory:
cd checkout-system
  1. Install dependencies:
npm install
  1. Run Unit Tests
npm run test
  1. Run Example Scenarios in local

    Go to src directory

    cd src

    i. SKUs Scanned: atv, atv, atv, vga Total expected: $249.00

    ts-node index.ts FirstExample

    ii. SKUs Scanned: atv, ipd, ipd, atv, ipd, ipd, ipd Total expected: $2718.95

    ts-node index.ts SecondExample

    iii. SKUs Scanned: mbp, vga, ipd Total expected: $1949.98

    ts-node index.ts ThirdExample

About

Price Cart rules for checkout system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published