Skip to content

Releases: PhilDL/react-router-gospel-stack

Migration to React Router

08 Nov 16:15

Choose a tag to compare

🚀 Migration to React Router v7+

Following the merge of Remix v2 into react-router, the template has finally been updated to use React Router! All the other libraries were also updated, eslint, typescript, tailwind, etc

Changes to the stack

  • We switch from Express to Hono, this reflect what I use in production and Hono makes it easier to deploy to Cloudflare.
  • We dropped litefs in favor of Turso as our SQLite provider of choice. Detailing the decision here, TLDR: the backup story with litefs got discontinued and in production I personally use Turso over LiteFS.
  • We added Drizzle as the default ORM of choice, and explain here why choose it over Prisma.

But that doesn't mean that you cannot use Prisma anymore, it all comes down to your setup choice

More interactive choices!

Setting up the stack now asks you to choose your ORM of choice (Prisma or Drizzle) and your Database of choice (Turso or Postgresql):

# Download the template without git history
pnpm dlx degit PhilDL/react-router-gospel-stack my-app
cd my-app

# Install and initialize
pnpm install
pnpm run setup

You can also switch ORM or Database with the following commands (careful it will replace existing files)

pnpm turbo gen scaffold-database