Skip to content

A simple app to check if the coupon created is valid or not by testing against a cart value and applying discount associated with it.

License

Notifications You must be signed in to change notification settings

Shreykr/coupon-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coupon Validator

A web app to create and validate coupon codes

Table of Contents

Technologies Used

  • React
  • Formik
  • Yup

Getting Started

To install and run this app locally simply follow the instructions below:

Pre-requisites

You need to have or install the following:

  1. Git bash
  2. Npm

Installation

  • Clone repo

    git clone https://github.com/Shreykr/coupon-validator.git
    
  • Navigate to project folder

  • Run installation

    npm install
    
  • Create a .env file with this template at the root of your project

    REACT_APP_API_URL =  http://localhost:5000/api/v1
    
  • Start app

    npm run start
    
  • You can now create coupons and apply them on a cart value to test its validity.

Screenshot

Hosted web application

https://coupon-validator-app.netlify.app/

Author

Shreyas K R

About

A simple app to check if the coupon created is valid or not by testing against a cart value and applying discount associated with it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published