# Vite + React app

> A React single-page app built with Vite, with client-side routing, served as static files.

A React 19 single-page app built with Vite and TypeScript, with two routes and a fallback so a refresh on any route works. Click Deploy and Naijacloud builds it from the public repo, serves the built files and gives you a live HTTPS address. No GitHub connection needed.

- Use case: Starter
- Stack: Vite, React
- Code: https://github.com/naijacloud/template-vite-react (branch `main`)
- Deploy: https://naijacloud-staging.com/new?template=vite-react&ref=template-vite-react
- Free tier: fits (1 app per workspace)
- Last verified on Naijacloud: 9 Oct 2026
- Page: https://naijacloud-staging.com/templates/vite-react

## What's inside

- React 19, Vite 7 and TypeScript
- Two routes with React Router, falling back to index.html so deep links work
- Builds to dist/ and is served as static files by nginx
- A Naijacloud welcome page, light and dark, that walks you to your own repo, a domain, a database and storage

## What you get after deploying

- A live address at https://vite-react.naijacloud-staging.com with HTTPS
- Build and runtime logs, metrics and redeploys from the dashboard

## Run it locally

```bash
git clone https://github.com/naijacloud/template-vite-react
cd template-vite-react
npm install
npm run dev
```

Learn how it works: [Deploy a web service](https://naijacloud-staging.com/docs/deploy/web-services)

All templates: https://naijacloud-staging.com/templates
