这是indexloc提供的服务,不要输入任何密码
Skip to content

tuono-labs/tuono

Repository files navigation

Tuono
The react/rust fullstack framework

⚠️ This project is under heavy development. API might drastically change ⚠️

Tuono (Italian word for "thunder", pronounced /2 Oh No/). Why Tuono? Just a badass name.

Installation

cargo install tuono

Create a new project

tuono new 

Development

tuono dev

Features

  • Rust based server side rendering
  • FS routing
  • CSS modules
  • Hot Module Reload
  • Multi thread backend

Folder structure

- .tuono
- public/
- src/
| - routes/
| | - api/
// Data is passed by the loading function
const IndexPage = ({data, isLoading, isError}) => <h1>Index Page</h1>

export const Route = createFileRoute({
    loader: (params) => fetchApi(params),
    component: IndexPage
})