- Install shadcdn
- Scaffold in basic nav element
- Push to GH
- Deploy to Vercel
- Add Vercel postgres
- Decide whether or not to use an ORM?
- Add Clerk
- Setup staging (local DB) and prod DB
- Add PostHog for analytics
- Consider using
next/router
router.refresh
I'm kind of at a crossroads around whether I use something like react-query, or just keep direct Prisma access in my server components. This article has some interesting tradeoffs.
Querying to fetch data in views seems pretty straightforward, but it's the mutation of data that I'm less sure about. Where are the places I'd need to do that?
- The scoring screen - entering scores
- Game creation screen - adding users to a game
Maybe that's it? hmm.
I think a REST API approach here makes more sense. What do we need to do:
- Create game 2. Choose players - select players from list of available players 3. Start - mark start time 4. Enter scores each round 5. New score entry for each player, and each score is associated with the gameId 5. Option to pause 6. Complete once someone hits 75 1. Mark game as finished 2. Set winnerID
- Resume game