From 456468577f31520fa264e9eb43c0290be5ec48cb Mon Sep 17 00:00:00 2001 From: "Glitch (a3-rosanapochat)" Date: Thu, 19 Sep 2019 15:49:37 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9C=F0=9F=92=95=20Updated=20with=20Gli?= =?UTF-8?q?tch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + .glitch-assets | 0 README.md | 82 +- package-lock.json | 3739 +++++++++++++++++++++++++++++++++++++ package.json | 30 + passport-config.js | 29 + public/js/client.js | 51 + public/views/index.ejs | 38 + public/views/index.html | 56 + public/views/login.ejs | 20 + public/views/register.ejs | 21 + server.js | 161 ++ shrinkwrap.yaml | 2404 ++++++++++++++++++++++++ 13 files changed, 6570 insertions(+), 63 deletions(-) create mode 100644 .gitignore create mode 100644 .glitch-assets mode change 100755 => 100644 README.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 passport-config.js create mode 100644 public/js/client.js create mode 100644 public/views/index.ejs create mode 100644 public/views/index.html create mode 100644 public/views/login.ejs create mode 100644 public/views/register.ejs create mode 100644 server.js create mode 100644 shrinkwrap.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..97aca2ea --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +node_modules \ No newline at end of file diff --git a/.glitch-assets b/.glitch-assets new file mode 100644 index 00000000..e69de29b diff --git a/README.md b/README.md old mode 100755 new mode 100644 index afcca619..61825dd6 --- a/README.md +++ b/README.md @@ -5,70 +5,26 @@ 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 (`