~/talk

Track Launches using SpaceX API and SvelteKit

Talkat apidays Paris 2021 · 2021-12-07..12-09· [javascript, web-platform]
slides:none on file

Creates a SvelteKit app that reads a SpaceX launches template stored in GraphCMS over its GraphQL API and renders ~25 launches successfully in dev. Uses graphql-request with the gql tag, moves the client into a reusable lib, and preloads data via SvelteKit load so pages receive launch props before mounting. Adds an endpoint at routes/launches/index.json.js that fetches the same query and returns JSON; the local dev server runs and shows the live launch list.

AI-written summary · about

  1. 0:00Start
  2. 1:40Create a New Project
  3. 5:29The Api Playground
  4. 13:57Dependencies
  5. 14:48Git Ignore File
  6. 19:17Api Permissions
  7. 21:00Socket Load Function
~/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.