Web Dev//CRUD

Create, Read, Update, Delete -- the four basic operations on data. Any app that manages information implements CRUD.


Create, Read, Update, Delete -- the four basic operations on data. Any app that manages information implements CRUD.

In SQL: INSERT, SELECT, UPDATE, DELETE

In a REST API: POST, GET, PUT/PATCH, DELETE

In Hono (or Express): you define one handler per operation (app.get, app.post, app.put, app.delete)

Wrangler runs these handlers locally against D1 for development, and in production against the remote D1 -- the code is identical

Automations: creating a resource can trigger side effects in the same handler (e.g. creating a contact --> automatically create its associated story and prospect). All in TypeScript, in the same API handler.