Chapter 4
Batteries: Jobs, Mail, Storage, AI
The included primitives that ship with every Grit API.
~30 min total4 lessonsAssignment
By the end of this chapter you'll be able to
- Run background jobs
- Send transactional email
- Upload files
- Call the AI Gateway
Lessons
Chapter assignment
Welcome flow end-to-end
When a user signs up: enqueue a welcome-email job (Asynq) that sends an HTML email (Resend â Mailhog in dev), uploads a default avatar to MinIO, and writes one line of a personalised greeting via the AI Gateway. Wire all three.
See success criteriaLesson 1 takes ~9 min.
Start chapterSpot a typo? Have an idea?
Help us improve this chapter. One click opens a GitHub issue with this chapter's URL pre-filled â suggest a clearer wording, report a bug, or request a new lesson. The course keeps improving thanks to learners like you.
Suggest an improvement on GitHub