Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sph3ricalpeter/react-frontend
https://github.com/sph3ricalpeter/react-frontend
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sph3ricalpeter/react-frontend
- Owner: Sph3ricalPeter
- Created: 2023-06-18T00:40:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-18T00:40:43.000Z (over 1 year ago)
- Last Synced: 2024-04-28T04:17:27.027Z (7 months ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
---
title: Vite + React
description: The default Vite + React starter, utilizing `serve` to serve the built app
tags:
- node
- vite
- react
---# Vite + React + Serve
This is a [Vite + React](https://vitejs.dev/guide/#trying-vite-online) starter that uses [serve](https://www.npmjs.com/package/serve).
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/NeiLty?referralCode=ySCnWl)
## ✨ Features
- Vite + React
- Serve## 💁♀️ How to use
- Install required dependencies with `npm install`
- Start the server for local development `npm run dev`## ❓ Why use `serve`
By default Railway will use the `start` script defined in package.json to run your app, the default Vite + React starter project does not come with any `start` script, so I have added `serve` as the start script, there are many benefits to using serve over just running the vite command.
- `serve` is more suited to run single page apps
- Uses less ram than `vite` or `vite preview` (<100mb)
- Far more performant and stable