~/talk

The Laravel developer's guide to Vue SPAs

Talkat Laracon AU 2019 · on Thursday, 2019-10-31· [php, vue]
slides:none on file

Built Giftee Duck as a Vue SPA on Laravel Vapor, the talk gives concrete patterns: use Laravel Passport cookies (HTTP-only) for auth and an Axios interceptor to handle expiry; manage client state with Vuex flattened store and store base64 avatars to avoid image flicker; use a router navigation guard to make modals respect the back button; reduce bundle size by swapping moment for date-fns, saving 261 KB saved minified. Slides: https://laracon.com.au/slides/2019/jess-archer.pdf

AI-written summary · about

  1. 0:00Start
  2. 2:38Single Page Application
  3. 4:05Why not build an SPA?
  4. 4:32Easy to harm user experience and accessibility
  5. 4:46Hard to optimise for search engines
  6. 5:25SPA Authentication
  7. 5:55OAuth Primarily intended for third-party auth
  8. 7:23Why short access tokens and refresh regularly?
  9. 7:48JWT JSON Web Tokens
  10. 8:56Cookies!
  11. 9:15Cookies marked HttpOnly cannot be accessed by JavaScript
  12. 12:04State Management
  13. 16:28Freedom can be paralysing in software development
  14. 18:29Structuring your data on the front end
~/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.