gillkyle / tanstack-react-vite-template

3 stars 0 forks source link

title: TanStack React + Vite description: The default Vite + React starter, utilizing Caddy to serve the built app tags:

TanStack React + Vite Template

This is a lightweight React starter template using Vite, TypeScript with React, and 2 core packages from the TanStack:

  1. TanStack Query
  2. TanStack Router

It is deployed with the memory efficient Caddy web server, and can be set up on Railway in a single click.

Deploy on Railway

💁‍♀️ Getting Started

  1. install dependencies with bun install
  2. start local development with bun run dev

❓ Why Caddy for serving the app?

See: https://github.com/brody192/vite-react-template#-why-use-caddy-when-deploying-to-railway

Caddy is a powerful, enterprise-ready, open source web server, and therefore Caddy is far better suited to serve websites than Vite is, using Caddy will result in much less memory and cpu usage compared to serving with Vite (much lower running costs too).