A step-by-step guide to building a full-stack app with TanStack Start
Blog post from LogRocket
The TanStack Start is a promising new addition to the TanStack suite of React tools, designed as a full-stack meta-framework that prioritizes a client-side-first developer experience while offering high performance. Built on React, Vite, and TanStack Router, it provides a thin layer of server-side rendering and is suitable for creating full-stack web applications, such as the recipe-sharing website described in the article. This website allows users to manage and share recipes, using BetterAuth for account creation and Google social login, and Prisma with a PostgreSQL database for data persistence. The project structure is organized to streamline development, with steps outlined for setting up authentication, database integration, and UI components using Shadcn and Tailwind CSS. The article emphasizes the importance of protecting routes to prevent unauthorized access and suggests using middleware to effectively manage user context. While the core functionality of the application is established, additional features like recipe deletion and privacy toggling are suggested for further exploration, with the complete source code available on GitHub for those interested in a deeper dive into TanStack Start.