百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

turbo-expo-nextjs-clerk-convex-monorepo

> 编程语言
开源

带有 Turborepo、Next.js、Expo、Clerk、Convex 的 Monorepo 模板

393 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

带有 Turborepo、Next.js、Expo、Clerk、Convex 的 Monorepo 模板

Fullstack Monorepo Template

This repo is a modern TypeScript monorepo for a shared notes app across web and native.

It currently uses:

  • Turborepo
  • pnpm
  • Next.js 16 with the App Router
  • Expo SDK 55 with Expo Router
  • React 19
  • Convex
  • Clerk
  • OpenAI for optional note summaries

What’s inside

  • apps/web - the Next.js web app
  • apps/native - the Expo native app
  • packages/backend - the Convex backend and generated API types

Quick start

1. Install dependencies

bash
pnpm install

2. Configure Convex

Run the backend setup command:

bash
pnpm --filter @packages/backend setup

This will log you into Convex, create or connect a project, and generate packages/backend/.env.local.

3. Configure Clerk for Convex

Follow the official Convex + Clerk guide.

In the Clerk dashboard, enable the Convex integration and copy the Clerk JWT issuer domain. Add it to your Convex environment variables as:

bash
CLERK_JWT_ISSUER_DOMAIN=https://your-frontend-api.clerk.accounts.dev

If you want native social login, enable Google and Apple in Clerk as well.

If you want AI summaries, also add:

bash
OPENAI_API_KEY=...

to your Convex environment variables.

4. Configure the app env files

Create .env.local files in apps/web and apps/native from the provided .example.env files.

  • Use CONVEX_URL from packages/backend/.env.local for both NEXT_PUBLIC_CONVEX_URL and EXPO_PUBLIC_CONVEX_URL
  • Use your Clerk publishable key for both app env files
  • Use your Clerk secret key in apps/web/.env.local

5. Run the apps

bash
pnpm dev

This runs the backend, web app, and native app through Turbo.

Deploying

From apps/web, use Convex to deploy the backend and build the web app:

bash
cd ../../packages/backend && pnpm exec convex deploy --cmd 'cd ../../apps/web && pnpm build' --cmd-url-env-var-name NEXT_PUBLIC_CONVEX_URL

apps/web/vercel.json is already set up for this flow on Vercel.

Adding dependencies

Install dependencies in the package that actually uses them.

Examples:

bash
pnpm --filter web-app add mypackage@latest
pnpm --filter native-app add mypackage@latest
pnpm --filter @packages/backend add mypackage@latest

Notes

  • The native app uses Expo Router route groups under apps/native/src/app
  • The web app protects note routes with apps/web/src/proxy.ts
  • Convex enforces note ownership server-side in packages/backend/convex/notes.ts

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言