Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Play around with the UI to understand what the current behaviors are without data persistence, then read the following on how a user must be

Play around with the UI to understand what the current behaviors are without data persistence, then read the following on how a user must be able to interact with the application with the server-side code completed. Keep in mind the following requirements are overall behavior, so your implementation in `app.js` will help complete these required behaviors:
Adding a task
If a user types a task into the input box and single-clicks the Add button, the task is appended to the end of the TODO list.
Duplicate tasks found in TODO or Completed are not added and cause an alert popup to show stating "Bad Request: task already exists!".
Data is persisted in the same order when the browser is refreshed, closed, or cleared of local storage + cache.
Completing a task
When a user single-clicks a task in the TODO list, the item is removed from the TODO list and appended to the end of the Completed list.
Data moved between lists is persisted in the same order when the browser is refreshed, closed, or cleared of local storage + cache.
Deleting tasks
When a user single-clicks a task item in the Completed list, the task is deleted from the the list and no longer appears in the UI at all. (This item is already completed for you)
When a user single-clicks the Clear All button, all tasks in the TODO and Completed lists are deleted from their respective lists.
Tasks that have been deleted remain deleted after browser is refreshed, closed, or cleared of local storage + cache.
Data persistence requirement
You may not use browser local storage because we want the user to be able to access their saved data from anywhere! You are required to handle data persistence by storing the data in-memory in the provided Express server that we will run in the cloud for them. To clarify, the expectation is that data is persistent when the browser state is changed, not when the server state is changed. For example, if you reboot the node application, data is not required to be persisted then, but when the browser is refreshed or closed and opened again, it is.
Additional information:
All client-side (frontend) jQuery AJAX code will already be complete. You should not need to update any of the provided jQuery AJAX code, but please feel free do so if you feel it is necessary to accomplish one of the required behaviors listed above.
Use this to create a to-do list using html, javascript, and css to look like the picture
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

2 Describe how prices are quoted.

Answered: 1 week ago

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago