A template with straightforward and flexible approach to use the benefits of tRPC in your React projects. uses the monorepo approach that significantly improves the developer experience. If you're looking for a zero-fuss setup with pure React and modularization, this template is an excellent place to start! Custom components are compartmentalised as a seperate package to be re-used across the project.
For local execution, use pnpm i
and pnpm dev
.
- envs are validated using Zod in the back end.
- We use Material-UI for components & styling.
- We use React Hook Form for forms.
- Forms are Persistent on page reloads.
- Server Sent Events(SSE) are used to handle user sessions.
- Progessive Web Apps(PWA) with force-update & force-logout functionality on version mismatch from backend.
- Rate Limiting activated in back-end.
- Auth via JWT in cookie.
- End-to-End Typesafety between backend & frontend using TRPC.
- Push Notifications
- Central error handling in trpc for updates & session-invalidated.
- Testing
- Add ORM.
- Backend Logs to Database.
- Front-End logs with user/session tags.
- Auto version on PR/Push.
- Social Login.
- Feature flags for easy rollbacks.
- A/B testing.
- Github actions for devops.
- pm2 monitoring.
- Dont upgrade react-query to v5 unless trpc is upgraded to v11. More here: TanStack/query#6186 (comment)
-[prisma-express-typescript-boilerplate] (https://github.com/antonio-lazaro/prisma-express-typescript-boilerplate)
- [react-vite-trpc] (https://github.com/kuubson/react-vite-trpc/tree/main)