From 555b534cb7cb2782089ce0d1b2ea4797532e00f9 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Fri, 18 Jun 2021 13:44:39 +0200 Subject: readmeUpdate(order section) --- readme.md | 11 ++++++++++- readmeMedia/localStorage.gif | Bin 0 -> 501051 bytes 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 readmeMedia/localStorage.gif diff --git a/readme.md b/readme.md index 29b3c2d..28bc85b 100644 --- a/readme.md +++ b/readme.md @@ -1 +1,10 @@ -![](readmeMedia/testgif.gif) +# Description + +## Placing orders in shopping basket using localStorage, and then saving order in database + +What happens here is that first ground truth attraction is fetched from the +database to be displayed in the dom. When the user tries to input a number of tickets the button is checked against the ground truth (and the localStorage) to see whether tickets are available, otherwise the button is disabled and greyed out. + +When a valid order is placed, it is stored in the shoppingbasket or an array in the localStorage. This array of orders is displayed when the user visits the shoppingbasket page, where the user can also dynamically remove an order before paying. In this prototype the actual payment is not implemented, we assume a valid payment and the order is stored in the database. Orders in the database are displayed when visiting the my orders page. + +![localStorage order](readmeMedia/localStorage.gif) diff --git a/readmeMedia/localStorage.gif b/readmeMedia/localStorage.gif new file mode 100644 index 0000000..30ac48b Binary files /dev/null and b/readmeMedia/localStorage.gif differ -- cgit v1.2.3