~/talk

Mint — programming language for writing single page applications (part 2)

Talkat HolyJS 2020 Moscow · 2020-11-25..11-28· [web-platform, javascript]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:53New Mint project setup
  3. 4:21Fetching API data with errors
  4. 13:14Decoding API responses
  5. 17:30Updating state with data
  6. 19:17Rendering cocktails
  7. 23:15Search with input handling
  8. 27:53Reusable components
  9. 33:56Cocktail details and styling
  10. 34:19Implementing routing for single-page navigation
  11. 42:13Production build
  12. 45:05External packages
  13. 49:20UI library integration
  14. 56:43Final design
  15. 57:29Answering audience questions about Mint
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.