~/talk

AI Meets Node js With Crafting a Custom Sports Activity Service

Talkat Conf42 JavaScript 2023 · on Thursday, 2023-11-16· [nodejs, ai-assisted-development]
slides:none on file

Node.js + Express service wires an OpenAI GPT-3.5-turbo completion into a Postgres-backed user model (Knex migrations), Redis session store, and simple activity history, returning a concrete JSON: activities JSON with type duration water plan. Prompts use a strict system role and user role carrying indicators; temperature set to 0.9 yields varied suggestions like 45 or 16 minute sessions. Demo shows suggestions saved as “last activity” (inserted immediately, not verified by a device).

AI-written summary · about

  1. 0:00intro
  2. 0:22preamble
  3. 0:50lineup
  4. 1:32introduction
  5. 3:05openai
  6. 4:15setup openai
  7. 6:19dependencies
  8. 9:29knex setup
  9. 9:51knex migrations
  10. 11:10models
  11. 11:42user model
  12. 12:09indicator model
  13. 12:33activity model
  14. 12:51initial point
  15. 13:16redis
  16. 13:47auth middleware
  17. 14:32routes
  18. 15:18expectations
  19. 19:27openai api config
  20. 19:53controller
  21. 21:41system prompt
  22. 22:04completions
  23. 22:16system prompt
  24. 23:24user prompt
  25. 27:56suggestion controller
  26. 28:32update indicator
  27. 29:31activities
  28. 29:54github
  29. 30:32thank you for the attention
~/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.