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