Skip to content

Instantly share code, notes, and snippets.

@SalSoloman
Created January 8, 2018 19:54
Show Gist options
  • Save SalSoloman/c903e093a9f1659094b25f07556ec3ff to your computer and use it in GitHub Desktop.
Save SalSoloman/c903e093a9f1659094b25f07556ec3ff to your computer and use it in GitHub Desktop.

Weekly Goal

Specifications

  • Going to the Home Page should let you see all the contacts
  • Going to a contact detail page should show the full name of the contact
  • Adding a contact should add a new contact in the database, and redirect to the created contact
  • Clicking on the Delete link for a contact should delete the contact
  • Searching for a contact should list all the contacts which match the search string

Implementation Plan

  • Create homepage route
  • Create a database function that selects all contacts
  • Create a function in the views that will list all contacts
  • Create a function in the views to display each individual contact full information
  • Create a database function that inserts a new contact in the database
  • Create a post route that redirects a user to the contact details page when a new contact is created
  • Create a delete database function that delets a contact when delete button is clicked
  • Create a database function that selects all of the contacts that include the search string that the user inputs
@devonwesley
Copy link

In the "implementation section" I want you to explain a bit more about the user inputs. Let me know the lifecycle of the data that a user submits. But over all goodjob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment