summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2021-06-18 14:19:51 +0200
committerMike Vink <mike1994vink@gmail.com>2021-06-18 14:19:51 +0200
commit2efedf16cfaff3a033586d63b229bd872a621191 (patch)
tree248ac394ff210b7d8ceb08bcdcfb12f2c45db3d6 /readme.md
parenta0190e76f6a24eb3332f8fcbba45b3712680e361 (diff)
readmeUpdate(frontend)feature
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index 7377f50..e000e02 100644
--- a/readme.md
+++ b/readme.md
@@ -1,4 +1,6 @@
-# Description
+# Front-end of the prototype website
+
+This prototype nodeJS application was used to familiarize ourselves with front end web development using javascript, html, and css. We also implemented a database using a technology of choice, in this case a document database using MongoDB was used.
## Placing orders in shopping basket using localStorage, and then saving order in database
@@ -9,6 +11,12 @@ When a valid order is placed, it is stored in the shoppingbasket or an array in
![localStorage order](readmeMedia/localStorage.gif)
+## Sorting of the articles on the main page
+
+Articles on the main page can be sorted using the mean price ((kids + adults)/2) as a key for bubble sort of the attraction objects. Dom tree is manipulated by first removing all attractions and then adding them again in the right order. Users can also sort on location if the browser supports geolocation.
+
+![Sorting articles](readmeMedia/sortingArticles.gif)
+
## Responsive design using CSS mediaquery breakpoints
Depending on the size of the screen of your device, if there are articles on the screen, the styling will try to display a proper number of columns of articles/attraction on the screen. The use of flexboxes was also necessary for menu boxes.
@@ -21,3 +29,8 @@ There is also a map that uses GPS-coordinates of attractions in the database to
![ordering from the map](readmeMedia/orderingFromMap.gif)
+## Admin page
+
+The admin page can be used to change the data in the database with a graphical user interface. The prices and discount conditions can be updated, a attraction can be removed from the database, and a new attraction can be defined with a name, description, and location.
+
+![admin page](readmeMedia/adminPage.gif)