From 3bbc10fbe8e30bdcd9c190b5bb268d35e11dcbc5 Mon Sep 17 00:00:00 2001 From: "Glitch (a3-kaylaa2003-kayla-afonseca)" Date: Wed, 25 Sep 2024 19:03:36 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A6=8E=F0=9F=98=9C=20Updated=20with?= =?UTF-8?q?=20Glitch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .glitch-assets | 2 + README.md | 62 +- package-lock.json | 1790 ++++++++++++++++++++++++++++++++++++++++++ package.json | 21 + public/index.html | 64 ++ public/login.html | 69 ++ public/login.js | 26 + public/register.html | 57 ++ public/register.js | 27 + public/script.js | 68 ++ public/styles.css | 56 ++ server.js | 124 +++ 12 files changed, 2306 insertions(+), 60 deletions(-) create mode 100644 .glitch-assets create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 public/index.html create mode 100644 public/login.html create mode 100644 public/login.js create mode 100644 public/register.html create mode 100644 public/register.js create mode 100644 public/script.js create mode 100644 public/styles.css create mode 100644 server.js diff --git a/.glitch-assets b/.glitch-assets new file mode 100644 index 00000000..78009bc6 --- /dev/null +++ b/.glitch-assets @@ -0,0 +1,2 @@ +{"name":"leaves.PNG","date":"2024-09-25T07:55:15.832Z","url":"https://cdn.glitch.global/6e3f5eb5-6008-4d26-acce-b3066d02114a/leaves.PNG","type":"image/png","size":1723640,"imageWidth":1083,"imageHeight":685,"thumbnail":"https://cdn.glitch.global/6e3f5eb5-6008-4d26-acce-b3066d02114a/thumbnails%2Fleaves.PNG","thumbnailWidth":330,"thumbnailHeight":209,"uuid":"CNSeb4ZTfj29oTJt"} +{"name":"f63dbd6e-ef4d-4d9a-a997-6eeaa3165edc.image.png","date":"2024-09-25T09:02:37.216Z","url":"https://cdn.glitch.global/6e3f5eb5-6008-4d26-acce-b3066d02114a/f63dbd6e-ef4d-4d9a-a997-6eeaa3165edc.image.png","type":"image/png","size":179936,"imageWidth":2235,"imageHeight":1014,"thumbnail":"https://cdn.glitch.global/6e3f5eb5-6008-4d26-acce-b3066d02114a/thumbnails%2Ff63dbd6e-ef4d-4d9a-a997-6eeaa3165edc.image.png","thumbnailWidth":330,"thumbnailHeight":150,"uuid":"aG0J1nuNxLIeEVVc"} diff --git a/README.md b/README.md index 3a0d67e9..0e847992 100644 --- a/README.md +++ b/README.md @@ -1,64 +1,4 @@ -Assignment 3 - Persistence: Two-tier Web Application with Database, Express server, and CSS template -=== -Due: September 19th, by 11:59 AM. - -This assignnment continues where we left off, extending it to use the most popular Node.js server framework (express), -a database (mongodb), 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 all data associated with a logged in user (except passwords) -- a `Form/Entry` functionality which allows users to add, modify, and delete data items (must be all three!) associated with their user name / account. -- Persistent data storage in between server sessions using [mongodb](https://www.mongodb.com/cloud/atlas) (you *must* use mongodb for this assignment). You can use either the [official mongodb node.js library](https://www.npmjs.com/package/mongodb) or use the [Mongoose library](https://www.npmjs.com/package/mongoose), which enables you to define formal schemas for your database. Please be aware that the course staff cannot provide in-depth support for use of Mongoose. -- 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 (`