Skip to content

sargtier1/vite-nitro-react

 
 

Repository files navigation

React + Vite + Nitro

This is an example React application using the Vite/Nitro plugin from AnalogJS. The @analogjs/vite-plugin-nitro package can be used with any Vite-based application to provide:

  • Hybrid Server-side Rendering
  • Static Site Generation
  • API Routes

Setup

Run npm install to install the application dependencies.

Development

Run npm run dev for a dev server. Navigate to http://localhost:5173/. The application automatically reloads if you change any of the source files.

Build

Run npm run build to build the client/server project. The client build artifacts are located in the dist/analog/public directory. The server for the API build artifacts are located in the dist/analog/server directory.

Community

About

An example application with Vite, React, and Nitro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.0%
  • CSS 40.1%
  • HTML 8.9%