Monorepo

I want to build an app and use Convex for both the mobile and web versions. I’m new to using monorepos and came across a monorepo template—does it work with the latest updates? Can I use it as is, or will it require significant updates?
7 Replies
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart3w ago
Which template?
Slade_Wilson118
Slade_Wilson118OP3w ago
Convex
Monorepo with Next.js and Expo
Fullstack monorepo template feat. Expo, Turbo, Next.js, Convex, Clerk This is a modern TypeScript monorepo template with AI web and native apps featuring: - Turborepo: Monorepo management - Next.js 13: Web app & marketing page - React Native Expo: Mobile/native app - Convex: Backend, database, server functions - [Clerk](ht...
erquhart
erquhart3w ago
It should work as is, it's an official template. It's on Next 14 and not 15, dependencies aren't necessarily latest, but they should all work together as is. I wouldn't have any concerns on starting as is and just defer updating until you need to. Even if it was up to date today, it would soon be out of date anyway once the next version of Next or some other dependency drops.
Slade_Wilson118
Slade_Wilson118OP3w ago
Can i create a separate api using convex , then connect it with the web app and the mobile ?
erquhart
erquhart2w ago
Short answer is yes. If it’s a monorepo you can use the template as a reference for how that might look depending on your monorepo setup. For separate repos you can export types from the api repo: https://docs.convex.dev/production/multiple-repos
Multiple Repositories | Convex Developer Hub
Use Convex in multiple repositories
ibrahimyaacob
ibrahimyaacob2w ago
@Slade_Wilson118 im trying to do the same thing, i was trying to work with the monorepo approach but i encounter some configuration bugs that i dont really understand. then i went for the path of multiple repo, but i'm facing issue where the code generator is not working on the 2nd repo https://discord.com/channels/1019350475847499849/1327720208206663802 i think we need a new one that uses convex auth

Did you find this page helpful?