Slide 1

Slide 1 text

Full-Stack Jamstack Fun M I K E C A V A L I E R E Cheap Thrills w/Next.js, Prisma, SWR

Slide 2

Slide 2 text

Full-stack polyglot (Rails, PHP, JS) ❀️ React & React Native ❀️ Jamstack (Especially Next.js) About me Mike Cavaliere @mcavaliere mcavaliere

Slide 3

Slide 3 text

JavaScript + APIs + Markup πŸ’‘ Great , !

Slide 4

Slide 4 text

πŸš€ FAST πŸ”Ž SEO πŸ” Secure πŸ“ˆ Scalable πŸ’° Saves $$$ πŸ’» **Developer Experience (DX)**

Slide 5

Slide 5 text

🧰 Toolbox πŸ›  JS Framework Database Data fetching UI/layout/design Authentication

Slide 6

Slide 6 text

Making Something Fun ~7 hours/wk investment time (πŸŽ‰EchobindπŸŽ‰) Fast; build in one day Use Jamstack Don't invent the wheel; use libs Don't spend money (free tools / hosting) Have fun doing it M Y C R I T E R I A :

Slide 7

Slide 7 text

The makings of a game

Slide 8

Slide 8 text

Let's Play! https://emoji-battle.vercel.app

Slide 9

Slide 9 text

Breakdown Login/Signup (NextAuth) Main Page (SPA)

Slide 10

Slide 10 text

schema.prisma

Slide 11

Slide 11 text

Slide 12

Slide 12 text

click POST /api/emoji/create missive/emoji-mart (/pages/api/emoji/create.ts) Get user from session

Slide 13

Slide 13 text

click POST /api/emoji/create missive/emoji-mart INSERT emoji and vote into DB

Slide 14

Slide 14 text

fetch every 200ms & render /pages/api/emoji/list.ts one Prisma call does everything πŸŽ‰ Get all the emoji Get vote count for each emoji Ignore votes before 15 min ago Emoji w/most votes first

Slide 15

Slide 15 text

Same deal for users. /pages/api/users/list.ts

Slide 16

Slide 16 text

// TODO: ... Animation (framer-motion is included in Chakra!!) Websockets - for REAL real-time Make game dynamics more fun - lots of possibilities here github.com/mcavaliere/emoji-battle I have two kids and a book to write, you might beat me to it

Slide 17

Slide 17 text

The Jamstack is great The Jamstack isn't just for websites; it's for apps This toolkit has unmatched DX === enjoyable to use Building fun things is a great way to level up your skillset Takeaways

Slide 18

Slide 18 text

Go make something fun. πŸ’° we're hiring πŸ’° echobind.workable.com CutIntoTheJamstack.com echobind.com Mike Cavaliere @mcavaliere mcavaliere πŸ“• My book source: https://github.com/mcavaliere/emoji-battle