E54: Digits, Part 2

For this experience, you will continue designing a simple Meteor application called Digits. In this WOD, you will:

When you are finished, the application home page for a logged in user should look something like this:

There should also be a “List Contacts” page:

And an “Add Contact” page:

The WOD

Ready? Let’s begin:

  1. Start your timer.

  2. Create and switch to a branch called “collection-1” in your local repository. You will do all the work for this WOD in this branch.

  3. Change the “Stuff” collection to “Contacts”. This means:

    • Changing the schema definitions in lib/collections.
    • Changing the fixture in server/seeds.
    • Changing the client/templates/stuff directory and interior files to contacts.
    • Editing lib/router/router.js to refer to Contacts rather than Stuff.
    • Client/templates/Header.html

You might want to do a “Search in path” for “Stuff” to make sure you catch all the occurrences.

  1. Do a meteor reset to clear the database of “Stuff”, then meteor --settings ../config/settings.development.json

  2. Move the example table code you created to the “ListContacts” page, and change the home page to say “Welcome to Digits. Login to continue.”

  3. Once you’ve finished, commit your changes to GitHub, and check to see that your changes are there.

  4. Stop your timer and record your time. Be sure to record it, because you will need your WOD time data when you write your technical essay.

Rx: <23 min Av: 23-26 min Sd: 26-30 min DNF: 30+ min

Demonstration

Once you’ve finished trying the WOD for the first time, watch me do it:

Standard WOD Caveats

You’ll learn significantly less from watching me solve the WOD if you haven’t attempted the WOD yourself first.

While it’s an achievement to finish the WOD no matter how long it takes, you might experience “diminishing returns” if you work longer than the DNF time. Thus, it is usually strategic to stop working at the DNF time and watch my solution.

After watching my solution, I recommend that you repeat the WOD if you have not achieved at least Av performance. If so, be sure to:

Feel free to keep trying until you make Rx if that’s of interest to you.

Submission instructions

To be completed by the time and date indicated on the Schedule page.