---
title: "Deploy TanStack + React Starter"
description: "A barebones TypeScript React starter with TanStack Router & Query setup"
category: "Starters"
url: https://railway.com/deploy/EF4fed
---

# Deploy TanStack + React Starter

A barebones TypeScript React starter with TanStack Router & Query setup

**[Deploy TanStack + React Starter on Railway](https://railway.com/template/EF4fed)**

- **Creator:** Kyle Gill's Projects
- **Category:** Starters
- **Total deploys:** 40

## Template content

### tanstack-react-vite-template

- **Source:** https://github.com/gillkyle/tanstack-react-vite-template
- **Public domain:** Yes

## Documentation

# TanStack React + Vite Template

This is a lightweight React starter template using [Vite](https://vitejs.dev), [TypeScript](https://www.typescriptlang.org/) with React, and 2 core packages from the TanStack:

1. [TanStack Query](https://tanstack.com/query/latest)
2. [TanStack Router](https://tanstack.com/router/v1)

It is deployed with the memory efficient [Caddy](https://caddyserver.com/) web server, and can be set up on [Railway](https://railway.app) in a single click.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/EF4fed?referralCode=1Apk1r)

## 🚀 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).

## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/EF4fed
