Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandonroberts/analog-vite-nitro-react
An example React app using Vite, Analog, and Nitro
https://github.com/brandonroberts/analog-vite-nitro-react
meta-framework react ssg ssr
Last synced: 2 months ago
JSON representation
An example React app using Vite, Analog, and Nitro
- Host: GitHub
- URL: https://github.com/brandonroberts/analog-vite-nitro-react
- Owner: brandonroberts
- Created: 2024-05-28T17:59:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T18:03:22.000Z (7 months ago)
- Last Synced: 2024-10-08T17:41:34.624Z (3 months ago)
- Topics: meta-framework, react, ssg, ssr
- Language: TypeScript
- Homepage: https://analog-vite-nitro-react.netlify.app/
- Size: 70.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React + Vite + Analog + Nitro
This is an example React application using the Vite/Nitro plugin from [AnalogJS](https://analogjs.org). 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 start` 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
- Visit and Star the [GitHub Repo](https://github.com/analogjs/analog)
- Join the [Discord](https://chat.analogjs.org)
- Follow us on [Twitter](https://twitter.com/analogjs)
- Become a [Sponsor](https://github.com/sponsors/brandonroberts)