Build four components:
- A ContactCollection component that loads existing contacts from storage, and saves new ones. Each new contact should have an auto-generated identifier.
- A Contact component that displays a person's name, phone number, and address.
- A ContactList component that displays all contacts. It should import the Contact component and the ContactCollection component.
- A ContactForm component that, when filled out and a submit button is pressed, adds a new contact to storage. It should import the ContactCollection component.
- In main.js, import the ContactList component and the ContactForm component.
- The user should see the contact form at the top of the view, and the list of contacts underneath it.
- Styles
- Contact form
- Clear entry form on submit
- when submitted, adds a new contact to storage
- should import the ContactCollection component
- Import ContactList and ContactForm into main.js (browserify)
- Contact list
- displays all contacts by importing the collection of contact components
- ContactCollection (database)
- Loads existing contacts from storage
- Saves new contacts
- Web app should show contact form at the top of the page and display the list of contacts underneath the form
- Contact (entity, see data structure)
- Contact
- auto-generated identifier
- name
- phone number
- address
- Clone the repo.
- From the command line, cd into the /src directory.
- Type
grunt
into the command line. - Open a second terminal and cd into the /src directory.
- Type
hs -o
into the command line.