Chapter 5 Assignment

Hand-write a Note resource

The brief

Without using `grit generate`, hand-write a Note resource: model, service, handler, routes. List notes, create one, update, delete. Then run `grit generate resource Note` in a fresh project and DIFF the two — note where your code differs from the generated. One paragraph in notes.md on what you learned.

You've completed this when

  • All 4 CRUD endpoints work via curl/Postman
  • Handler is thin (no DB calls)
  • Service contains all DB work
  • You can explain every line you wrote

Worked through every criterion?

Push your code to GitHub, paste the link in your notes.md, and move on.

Continue to ch.6: The Batteries