A Second Coding Assignment


In your SignIn and Join views do the following:

  1. Bind refs to each of the <input> elements in such a ways that when the user enters text in the <input> fields the refs are automatically updated by Vue.
  2. Utilize the values in the refs when validating the user input and when setting up fetch’s options objects.
  3. Remove unnecessary code.

Inside your Main view create a clickable item in the navigation bar that produces a drop down menu.  The drop down menu should display the word Delete.

When the user presses Delete the app should:

  1. Confirm that the user wants to delete the account.
  2. If confirmed, send a request to the API server requesting the account be deleted (the protocol is shown below).
  3. If the response contains a 200 status code, remove the user’s data from localStorage and redirect the user to the Home view.

When completed, push your code to GitHub, hug a friend, and verify your code was deployed to Digital Ocean.