Skip to content
项目

PhilDL/react-router-gospel-stack

在 GitHub 查看

关于

React Router (7) monorepo template with pnpm, TypeScript and Turborepo. The react-router app deploys to fly.io or build to Docker image. Example packages for Database with Prisma, UI, and internal TypeScript packages.

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

React Router Gospel Stack with Turborepo

The React Router Gospel Stack

React Router TypeScript monorepo with Turborepo pipelines, Drizzle/Prisma ORM, Turso/PostgreSQL database, Docker deploy to Fly.io, pnpm, shadcn/ui, and TailwindCSS.

[!IMPORTANT]
This used to be the remix-gospel-stack (Remix v2) but to follow remix merging back into react router, the stack was converted to React Router v7+. And the name was changed to react-router-gospel-stack.

In this migration, we made other adjustments to the stack that reflects what I'm using in production SaaS apps:

  • Using Turso instead of LiteFS (decision)
  • Dropping the NextJS app and the Vercel deployments (I was not using them so difficult to maintain)
  • We now use pnpm catalogs to define our versions in one file.

Quick Start

Recommended: Using degit

pnpm dlx degit PhilDL/react-router-gospel-stack my-app
cd my-app
pnpm install
pnpm run setup

Alternative: Clone the Repository

git clone [email protected]:PhilDL/react-router-gospel-stack.git my-app
cd my-app
pnpm install
pnpm run setup

:minidisc: This repository is opiniated:

  • TypeScript only
  • Only compatible with pnpm package manager to handle monorepo workspaces
  • Uses turborepo pipelines + cache to build, lint, typecheck, and test the monorepo

What's in the Stack

This is a monorepo for building modern web applications with React Router, optimized for developer experience and deployment simplicity.

Core Technologies

  • 🚀 React Router v7+ - Modern full-stack React framework
  • 📦 Turborepo - High-performance build system for monorepos
  • 🗄️ Database - Choose between:
    • Turso - Distributed SQLite with libSQL
    • PostgreSQL - Multi-region Fly PostgreSQL Cluster
  • 🛠️ ORM - Choose between:
    • Drizzle - SQL-like TypeScript ORM
    • Prisma - Type-safe database toolkit
  • 🎨 shadcn/ui - UI Components system
  • 🎯 TailwindCSS 4 - Utility-first CSS framework
  • 🐳 Docker - Containerized deployment
  • 🪂 Fly.io - Multi-region deployment platform

Developer Tools

Monorepo Structure

  • apps/ - Your applications (React Router webapp included)
  • packages/ - Shared code, UI components, database, business logic
  • config/ - ESLint, tsconfig, and other configuration packages

Documentation

Key Decisions

If you knew this stack from a previous version, here are some decisions documents that explain why certain things changed:

Support & Contributing

See CONTRIBUTING.md for contribution guidelines.

Thanks & Credits

Disclaimer

I am learning and improving this stack continuously. The setup proposed here is one of many possible approaches. If you see any possible improvements, please submit a PR — I will appreciate it greatly!

License

MIT

探索相关项目

加载中…