A modern full-stack starter template combining Vite, Nitro, and GraphQL.
A modern full-stack starter template combining Vite, Nitro, and GraphQL.
This project now supports Rolldown, a Rust-based bundler thatβs significantly faster than traditional JavaScript bundlers. The rolldown branch uses:
To use the Rolldown version:
git checkout rolldown
pnpm install
pnpm dev
.graphql filesnpm install
# or
pnpm install
npm run dev
Open http://localhost:3000 to see the interactive demo.
npm run build
npm run preview
βββ server/
β βββ graphql/
β βββ config.ts # GraphQL configuration
β βββ schema.ts # Schema definition
β βββ user/
β βββ user.graphql # User type schema
β βββ getUser.resolver.ts
β βββ createUser.resolver.ts
β βββ userStore.ts # Mock data
βββ src/
β βββ main.ts # App entry point
β βββ app.ts # Demo UI
βββ index.html
The demo includes a simple User API with:
query GetUser($id: ID!) {
getUser(id: $id) {
id
email
name
createdAt
}
}
mutation CreateUser($input: CreateUserInput!) {
createUser(input: $input) {
id
email
name
createdAt
}
}
This starter supports all Nitro deployment presets. Check the Nitro deployment documentation for more details.
# Build for production
npm run build
# Deploy to your favorite platform
# Vercel, Netlify, Cloudflare Workers, AWS, etc.
MIT
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.