Mint — programming language for writing single page applications (part 2)
summary
Builds a working cocktail PWA with Mint from scaffold to production: scaffolding with mint init, live reload via mint start, state in a store, HTTP requests with the http module and sequence/catch/try for async error handling, JSON decode into typed records, client-side routing to a details page, and UI from a Mint UI package pulled from decentralized packages on GitHub. The app compiles with mint build, emits index.html manifest and a service worker that caches assets so the PWA works and navigates as demonstrated.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:53New Mint project setup
- 4:21Fetching API data with errors
- 13:14Decoding API responses
- 17:30Updating state with data
- 19:17Rendering cocktails
- 23:15Search with input handling
- 27:53Reusable components
- 33:56Cocktail details and styling
- 34:19Implementing routing for single-page navigation
- 42:13Production build
- 45:05External packages
- 49:20UI library integration
- 56:43Final design
- 57:29Answering audience questions about Mint








