diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9bbf1f77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +node_modules +package-lock.json + diff --git a/README.md b/README.md index 493995c1..08f95127 100644 --- a/README.md +++ b/README.md @@ -1,100 +1,27 @@ -Assignment 2 - Short Stack: Basic Two-tier Web Application using HTML/CSS/JS and Node.js -=== -Due: September 11th, by 11:59 AM. +# a2-SmeeBoi: +Sameer Desai +Glitch: https://a2-smeeboi-sameer-desai.glitch.me/ -This assignment aims to introduce you to creating a prototype two-tiered web application. -Your application will include the use of HTML, CSS, JavaScript, and Node.js functionality, with active communication between the client and the server over the life of a user session. +Random number "game". -Baseline Requirements ---- +Create player name and color with form inputs. Then "game" generates a random number between 1-100 for the score. Then this player info name, color, score gets sent to server. -There is a large range of application areas and possibilities that meet these baseline requirements. -Try to make your application do something useful! A todo list, storing / retrieving high scores for a very simple game... have a little fun with it. +Server creates rank derived field by looking at all player's score and assigning rank for each player. Now all players info gets sent back to client and displayed under Results section with added rank derived field. -Your application is required to implement the following functionalities: +Then user can delete players with delete button which deletes player info on server and server also fixes rank of all players. -- a `Server` which not only serves files, but also maintains a tabular dataset with 3 or more fields related to your application -- a `Results` functionality which shows the entire dataset residing in the server's memory -- a `Form/Entry` functionality which allows a user to add or delete data items residing in the server's memory -- a `Server Logic` which, upon receiving new or modified "incoming" data, includes and uses a function that adds at least one additional derived field to this incoming data before integrating it with the existing dataset -- the `Derived field` for a new row of data must be computed based on fields already existing in the row. -For example, a `todo` dataset with `task`, `priority`, and `creation_date` may generate a new field `deadline` by looking at `creation_date` and `priority` +Then user can edit player name with edit button which edits player info on server and will change all players with that name. -Your application is required to demonstrate the use of the following concepts: +NOTE: Need to scroll down to see results. Not enough time to fix :( -HTML: -- One or more [HTML Forms](https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms), with any combination of form tags appropriate for the user input portion of the application -- A results page displaying all data currently available on the server. You will most likely use a `` tag for this, but `