E45: Simple ToDos

Let’s start getting comfortable with Meteor.

Prelude

First, create a GitHub repo called simple-todos, and clone to your local computer.

Second, install Meteor. Follow the directions on the Meteor installation page.

Third, in a different directory, create a meteor app called simple-todos:

% meteor create simple-todos

You should now have two directories called “simple-todos”, one containing a clone of your GitHub repo, and the other containing your Meteor app.

Fourth, copy the contents of your Meteor app (i.e. ./meteor, simple-todos.js, simple-todos.html, and simple-todos.css) into the top-level of your GitHub repo directory. Test that your repo contains a running Meteor app by invoking meteor:

[~/github/philipmjohnson/simple-todos]-> meteor
[[[[[ ~/github/philipmjohnson/simple-todos ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/

Use control-C to shutdown the app. If the Meteor app does not run, you have not copied the files over correctly. Please fix before proceeding. Once this works, you can delete the Meteor-created simple-todos directory and do all future work in the GitHub simple-todos directory.

Fifth, add the class standard gitignore so that your IntelliJ IDEA files won’t be committed to the repo.

Sixth, create an IntelliJ IDEA project called simple-todos, using “Static Web” as the project type, and pointing it at your GitHub repo directory.

Seventh, commit your local repo to GitHub. If you’ve done everything correctly, your GitHub repo should look like this:

Eighth, step through the remainder of the first tutorial. Do all the editing in IntelliJ. Take your time and make sure you understand all the steps. Feel free to skip step 7 (Creating an iOS or Android native app) if you want.

Once you have finished the tutorial and have built your own version of simple-todos, commit your code to GitHub. You are now ready for the practice WOD!

The WOD

Ready? Let’s begin:

  1. Start your timer.

  2. Create a branch called “qa-1”.

  3. Add the class standard jshintrc file to your project and enable JSHint on your Meteor project.

  4. Fix any JSHint errors that exist.

  5. Add JSDoc comments to the code.

  6. Commit your branch to GitHub.

Rx: < 13 min Av: 13-17 min Sd: 17-20 min DNF: 20+ 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.