From 40b7d5837c0314a684cc2b4a62d153382353fcd2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 19 Sep 2019 09:38:39 -0500 Subject: [PATCH] Monolithic commit --- .gitignore | 3 + README.md | 113 +++++-------- package.json | 19 +++ private/events/eventExpirationData.json | 4 + public/assets/banner_logo.png | Bin 0 -> 4686 bytes public/assets/favicon.ico | Bin 0 -> 4606 bytes public/assets/wtm.png | Bin 0 -> 2490 bytes public/css/style.css | 122 ++++++++++++++ public/howToUse.html | 43 +++++ public/index.html | 36 ++++ public/js/eventCreationHandler.js | 90 ++++++++++ public/js/eventViewerHandler.js | 141 ++++++++++++++++ public/nav.html | 20 +++ public/success.html | 27 +++ public/viewEvent.html | 37 +++++ server.express.js | 209 ++++++++++++++++++++++++ server.improved.js | 152 +++++++++++++++++ 17 files changed, 944 insertions(+), 72 deletions(-) create mode 100644 .gitignore create mode 100644 package.json create mode 100644 private/events/eventExpirationData.json create mode 100644 public/assets/banner_logo.png create mode 100644 public/assets/favicon.ico create mode 100644 public/assets/wtm.png create mode 100644 public/css/style.css create mode 100644 public/howToUse.html create mode 100644 public/index.html create mode 100644 public/js/eventCreationHandler.js create mode 100644 public/js/eventViewerHandler.js create mode 100644 public/nav.html create mode 100644 public/success.html create mode 100644 public/viewEvent.html create mode 100644 server.express.js create mode 100644 server.improved.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..57195033 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.DS_Store +node_modules/ +package-lock.json diff --git a/README.md b/README.md index afcca619..9735e40b 100755 --- a/README.md +++ b/README.md @@ -1,74 +1,43 @@ -Assignment 3 - Persistence: Two-tier Web Application with Flat File Database, Express server, and CSS template -=== - -Due: September 16th, by 11:59 AM. - -This assignnment continues where we left off, extending it to use the most popular Node.js server framework (express), a flat file database suitable for small applications (lowdb), and a CSS application framework / template of your choice (Boostrap, Material Design, Semantic UI, Pure etc.) - - -Baseline Requirements ---- - -Your application is required to implement the following functionalities: - -- a `Server`, created using Express (no alternatives will be accepted for this assignment) -- a `Results` functionality which shows the entire dataset residing in the server's memory -- a `Form/Entry` functionality which allows users to add, modify, and delete data items (must be all three!) associated with their user name / account. -- Use of at least five [Express middleware packages](https://expressjs.com/en/resources/middleware.html). Explore! -- Basic authentication using the [Passport middleware](http://www.passportjs.org) for Express (this counts as one of your five middleware packages). We encourage using the Local strategy, but OAuth (Open Authentication) can also be used for additional technical achievement. The course staff cannot help you with the various flavors of OAuth strategies. YOU MUST PROVIDE US WITH ACCOUNT CREDENTIALS TO LOGIN TO YOUR APPLICATION IF YOU USE OAUTH. The course staff cannot be expected to have credentials for any particular OAuth service. -- Persistent data storage in between server sessions. [lowdb](https://github.com/typicode/lowdb) is a suitable database package for this assignment and will be discussed in class. -- Use of a [CSS framework or template](https://github.com/troxler/awesome-css-frameworks). This should do the bulk of your styling/CSS for you and be appropriate to your application. For example, don't use [NES.css](https://nostalgic-css.github.io/NES.css/) (which is awesome!) unless you're creating a game or some type of retro 80s site. - -Your application is required to demonstrate the use of the following concepts: - -HTML: -- HTML input tags and form fields of various flavors (`