Coffee In Code Out Development, LLC

Week 2 of 30 Minute Project - 2015 1/04/15 - 1/11/15

January 12th, 2015

Decided to do things a little bit differently and publish this as a weekly update kind of thing instead of each day as I didn’t like all the posts separated (and a few too many IMO). This week I’ll try and do one post for the whole week and update it as I go along.

This week:

  • Get more tests working
  • See if we can get started on the web side of the project

Day 1 - 3 1/4/15 - 1/7/15 Complete Slacker :/

Day 4 1/8/15 Today:

  • Figure out what state I last left the tests in, was working on getting current user
  • /user - gets current user that is logged in via that token
    * OK, got that working after a minor issue with the test relating to refreshSession not cleaning up the hashedPassword
    * https://github.com/warnero/node-todo-api/commit/a8ec1ce91a921de13869095f0731415908c99f72
    
    Next steps:
  • OK, what is next?
    • Add a new todo api endpoint
    • Mark a todo as completed
    • All with tests now that auth is working

Day 5 1/9/15 Today:

  • Nothing :/ Next steps:
  • Same as day before :P

Day 6 1/10/2015 Today:

  • /todos
    * POST /todos - add a new todo
        * Hmm, got the initial test to run OK
        * Added in the clear collection call to the _clearDatabase function
        * Now it fails to clear everything before actually trying to insert stuff :/
        * Need to figure this bit out first before continuing on since it’s kinda necessary
    * GET /todos - get all uncompleted todos
    * GET /todos/:id - get a specific todo
    * PUT /todos/:id - update a todo
        * should allow to complete or update description/title of todo
    
    Next steps:
  • Figure out why the gulp file isn’t calling things in the right order

Day 7 - 1/11/2015 Today:

  • Figure out why the gulp file isn’t calling things in the right order
    • So clear-test-data never finishes before tests get started, why?
    • OK, I was making clear-test-data as a dependency of setup-test-data as well as calling it from clean-populate
    • I got rid of this dependency and now it’s working!
  • GET /todos - get all uncompleted todos
    • need some sample data to retrieve
    • cool, got that working!
  • GET /todos/:id - get a specific todo
    * got this working
    
    Next steps:
  • PUT /todos/:id - update a todo
    • should allow to complete or update description/title of todo

Weekly Recap: Accomplishments:

  • Got /user working
  • Got POST /todos working
  • Got GET /todos working
  • Started on GET /todos/:id

Next week’s goals:

  • Get PUT /todos/:id working
  • Start on web
`
Copyright © 2020 Coffee In Code Out Development, LLC
Find us on Facebook or Twitter