Recommendations for a t3 starter pack equivalent for an ionic app?

I'm trying to find something akin to t3 (which I LOVE for Next.js projects). Ideally I'd like something highly prescriptive to get me up and running with trpc, ionic/capacitor, and an independent server w/ prisma. Some kind of prescriptive auth would be huge as well.
1 Reply
FelipeEmos
FelipeEmos17mo ago
Hi, @pixelpax, I am also very akin to t3 and I'm leading a project using Ionic / Capacitor JS In the end we decided to move out of the NextJS ecosystem because it was not helping. For example Ionic's navigation uses React Router, which is not how NextJS deal with routes. So it was super worth it to simply use a VITE React project and bootstrap our needed dependencies, like React Router. You gotta ask yourself if you really need all those SSR bloat from NextJS if you are building a Mobile App, which is probably a simple SPA We ended up with a Monorepo with 2 separate projects, a server and a client with all the good stuff, tRPC and Prisma. Things are working out great! Much better than a React Native + React Native Web stack, in my opinion. You could try using a template similiar to this one if you want a similar setup: https://github.com/kuubson/react-vite-trpc Regarding AUTH, there's nothing as easy as a NextAuth setup, but unfortunatelly that won't work here. NextAuth has given me headaches to trying to make it work outside of Next and, because the Capacitor / Ionic nature of having to be deployed in a different URL when you build the actual Native APP, you will have to do some custom CORS setup Otherwise the server won't trust the client's Native App. So.... I suggest going for a more hands on solution, which will take you a little more time to setup but will definitely help you in the long run We went with Lucia Auth and we're having a great time: https://lucia-auth.com/
GitHub
GitHub - kuubson/react-vite-trpc: template for monorepo (turborepo)...
template for monorepo (turborepo): client (React + Vite) + server (Express + tRPC) + pnpm, emphasizing the use of absolute paths. - GitHub - kuubson/react-vite-trpc: template for monorepo (turborep...
Lucia
Lucia
Want results from more Discord servers?
Add your server