GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FullStack-Flow/TanStack-Start-Tutorial: A comprehensive example application demonstrating the features and capabilities of TanStack Start, a type-safe, client-first, full-stack React framework.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
public
public
 
 
src
src
 
 
.gitignore
.gitignore
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
FEATURES.md
FEATURES.md
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

TanStack Start Basic Example

A comprehensive example application demonstrating the features and capabilities of TanStack Start, a type-safe, client-first, full-stack React framework.

image

Full Video Tutorial From YouTube

šŸš€ Overview

This project showcases a modern full-stack React application built with TanStack Start, featuring:

  • Type-safe routing with TanStack Router
  • Server-side rendering (SSR) capabilities
  • Authentication system with protected routes
  • Data fetching with TanStack Query
  • File upload functionality
  • Error handling and boundary components
  • Streaming and deferred data loading
  • Infinite scrolling with pagination
  • Form handling and validation
  • Modern UI with Tailwind CSS

šŸ“‹ Prerequisites

  • Node.js (version 18 or higher)
  • npm or pnpm package manager
  • Git

šŸ› ļø Installation

  1. Clone the repository:
git clone https://github.com/FullStack-Flow/TanStack-Start-Tutorial.git
cd TanStack-Start-Tutorial
  1. Install dependencies:
npm install
# or
pnpm install

šŸƒā€ā™‚ļø Development

Start the development server:

npm run dev
# or
pnpm dev

The application will be available at http://localhost:3000

šŸ“¦ Build

Build the application for production:

npm run build
# or
pnpm build

šŸš€ Production

Start the production server:

npm start
# or
pnpm start

šŸ“ Project Structure

src/
ā”œā”€ā”€ components/          # Reusable UI components
│   ā”œā”€ā”€ ui/             # UI component library
│   ā”œā”€ā”€ DefaultCatchBoundary.tsx  # Global error boundary
│   ā”œā”€ā”€ NotFound.tsx    # 404 page component
│   ā”œā”€ā”€ auth-header.tsx # Authentication header
│   └── protected.tsx   # Protected route wrapper
ā”œā”€ā”€ routes/             # File-based routing
│   ā”œā”€ā”€ __root.tsx      # Root layout and navigation
│   ā”œā”€ā”€ index.tsx       # Home page
│   ā”œā”€ā”€ dashboard.tsx   # Dashboard with nested routes
│   ā”œā”€ā”€ dashboard.*.tsx # Dashboard sub-pages
│   ā”œā”€ā”€ posts/          # Posts-related routes
│   ā”œā”€ā”€ users/          # Users-related routes
│   ā”œā”€ā”€ api/            # API routes
│   └── *.tsx           # Feature-specific routes
ā”œā”€ā”€ utils/              # Utility functions and server code
│   ā”œā”€ā”€ auth-*.ts       # Authentication logic
│   ā”œā”€ā”€ *.server.ts     # Server-side utilities
│   └── middleware.ts   # Custom middleware
ā”œā”€ā”€ styles/             # Global styles
└── router.tsx          # Router configuration

šŸŽÆ Features Demonstrated

šŸ” Authentication

  • Login system with form validation
  • Protected routes requiring authentication
  • User context management
  • Auth header component

šŸ“Š Dashboard

  • Multi-level navigation
  • Protected dashboard area
  • Profile and settings pages
  • Nested routing structure

šŸ“ Posts Management

  • Post listing with infinite scroll
  • Individual post pages
  • Deep nested routing
  • Server-side data fetching

šŸ‘„ Users Management

  • User listing
  • User detail pages
  • User editing functionality
  • Form handling and validation

šŸ”„ Advanced Features

  • File Upload: Drag-and-drop file upload with progress
  • Streaming: Real-time data streaming
  • Deferred Loading: Progressive data loading
  • Parallel Routes: Multiple routes rendering simultaneously
  • Error Handling: Comprehensive error boundaries
  • SSR: Server-side rendering for improved performance

šŸ”§ Technical Features

  • TypeScript for type safety
  • Tailwind CSS for styling
  • TanStack Query for data management
  • TanStack Router for routing
  • Vite for build tooling
  • Modern ES modules

šŸ”— API Routes

The application includes several API endpoints:

  • /api/users - User management
  • /api/users/:id - Individual user operations

šŸŽØ Styling

The project uses Tailwind CSS for styling with:

  • Responsive design
  • Modern color palette
  • Consistent spacing and typography
  • Dark mode support (ready)

šŸ› Error Handling

Comprehensive error handling with:

  • Global error boundaries
  • Route-specific error components
  • 404 page handling
  • User-friendly error messages

šŸ“± Responsive Design

The application is fully responsive and works across:

  • Desktop computers
  • Tablets
  • Mobile devices

šŸ”§ Configuration

Key configuration files:

  • vite.config.ts - Vite build configuration
  • tsconfig.json - TypeScript configuration
  • postcss.config.mjs - PostCSS configuration

šŸ¤ Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

šŸ“„ License

This project is licensed under the MIT License.

šŸ†˜ Support

For support and questions:

  • Check the TanStack documentation
  • Visit the TanStack Router docs
  • Review the example code in this repository

šŸŽ‰ Acknowledgments

  • Built with TanStack Start
  • Powered by TanStack Router
  • Styled with Tailwind CSS
  • Developed with Vite

Happy coding! šŸš€

About

A comprehensive example application demonstrating the features and capabilities of TanStack Start, a type-safe, client-first, full-stack React framework.

Topics

reacttanstack-querytanstack-react-querytanstack-routertanstack-starttanstack-tutorial

Resources

Readme
Activity
Custom properties

Stars

5 stars

Watchers

0 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.