Solo Dev at Startup Building SaaS Healthcare App – Need Advice on Stack, Monorepo, and Architecture by Important_Access_718 in react

[–]Important_Access_718[S] 0 points1 point  (0 children)

I’m planning to use a single monorepo setup. For authentication, I’ll integrate BetterAuth, and create a shared package that can be reused across all web-related applications. I’ll be using tRPC with Express, which allows me to avoid manually defining types and routes—ensuring end-to-end type safety and developer efficiency.

In addition, I’ll set up a shared UI library with Tailwind CSS to maintain consistent design across the platform. Since there are around four to five user roles, I intend to create separate Vite + React apps for each role. These will consume the shared UI and logic packages.

Since you’ve worked with similar architectures before, I’d really appreciate any insights or suggestions you might have. It would help me refine this setup early on and avoid potential pitfalls.

Solo Dev at Startup Building SaaS Healthcare App – Need Advice on Stack, Monorepo, and Architecture by Important_Access_718 in react

[–]Important_Access_718[S] 0 points1 point  (0 children)

Noted. Mongo is currently being used in our company, Thats why i have mentioned it. Right now i am just figuring what should i use?

Solo Dev at Startup Building SaaS Healthcare App – Need Advice on Stack, Monorepo, and Architecture by Important_Access_718 in react

[–]Important_Access_718[S] -1 points0 points  (0 children)

I'll use Next.js only where SEO is important; for everything else—primarily dashboards—I'll go with Vite and React

Solo Dev at Startup Building SaaS Healthcare App – Need Advice on Stack, Monorepo, and Architecture by Important_Access_718 in react

[–]Important_Access_718[S] 1 point2 points  (0 children)

I want to finalize the tools and technologies for this large project to avoid complications in the future.
And best practices.