Skip to content

HasutoSasaki/nuxt3-openapi-typescript-example

Repository files navigation

openapi-typescript + Nuxt3 Example

Example project demonstrating how to use openapi-typescript and openapi-fetch with Nuxt3.

✨ Features

  • 🚀 Type-safe API client with openapi-fetch
  • 📝 Automatic TypeScript types generation from OpenAPI schemas
  • ⚡ Nuxt3 with Vue 3 Composition API
  • 🔧 TypeScript support

🛠️ Setup

# Install dependencies
pnpm install

# Generate TypeScript types from OpenAPI schema
pnpm run generate:types

# Start development server
pnpm run dev

You'll see the server running at localhost:3000

📜 Scripts

# Development
pnpm run dev

# Build for production
pnpm run build

# Generate TypeScript types from OpenAPI schema
pnpm run generate:types

# Type checking
pnpm run type-check

💡 Usage

The project demonstrates type-safe API calls using openapi-fetch with automatically generated TypeScript types from OpenAPI schemas.

🤝 Contributing

We welcome contributions! Please read our Contributing Guidelines before submitting PRs.

📄 License

MIT

About

openapi-typescript + openapi-fetch + Nuxt 3 integration example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published