Skip to content

GreyCoupons/BE

Repository files navigation

Grey Coupons Back End

App that provides discounts to various amazon products.

Table of Contents

Links

Heroku Production Endpoint: https://greycoupon-test.herokuapp.com

Live Site: https://grey.coupons/

Front End Repo: https://github.com/GreyCoupons/FE

Table

Column Type Required Unique Key
id int yes unique primary key
title str
code str
link str
price int yes
discount int
expirationDate date
category str
imageAddress str
featured str
rating int

Routes:

GET: /api/loadcoupons

Loads coupons data from Google Sheets. No need to post anything, once the endpoint is reached, it commences the uploading process from the Google Sheets Data to the database.

GET: /get/featured Retrieves all featured coupons so they can be loaded to the Featured section on Front End.

GET: /api/removeExpired

Removes coupons that have expired by looking at their expiration dates.

POST: /remove/coupon Removes coupons by posting coupon ID.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published