summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2021-06-18 13:44:39 +0200
committerMike Vink <mike1994vink@gmail.com>2021-06-18 13:44:39 +0200
commit555b534cb7cb2782089ce0d1b2ea4797532e00f9 (patch)
tree116c98e9eb7567a99abd54c60a1bc834ac934fa8
parent2555e4be4d4192b0da3f3d35f9b09795ecc041a9 (diff)
readmeUpdate(order section)
-rw-r--r--readme.md11
-rw-r--r--readmeMedia/localStorage.gifbin0 -> 501051 bytes
2 files changed, 10 insertions, 1 deletions
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
--- /dev/null
+++ b/readmeMedia/localStorage.gif
Binary files differ