#how to share a convex database between multiple repos?

14 messages · Page 1 of 1 (latest)

odd prism
#

I would like to share a convex database within two different projects. Each project in its own repo.
How can I do this?

hidden hornet
odd prism
#

i'm thinking about putting the projects ni the same repo and use pnpm workspaces to share the convex code with all the apps

compact gulch
#

great idea. There's a repo with a turborepo monorepo. Monorepo is my recommendation, so you get the type benefits & autocomplete in both. However if one is python and doesn't use types right now, you can just configure the CONVEX_URL to point to the existing backend

hidden hornet
odd prism
hidden hornet
#

never heard of rescript

#

what does it do that convex types dont?

odd prism
#

Rescript is like Typescript but purely functional programming

hidden hornet
#

oh

#

i see

compact gulch
#

@odd prism in case you missed it I just published a monorepo template: https://www.convex.dev/templates/monorepo
If you ended up with any best practices you didn't see there for pnpm etc. lmk!

odd prism