Overview:
NuxtHub is a platform that allows developers to build full-stack applications with Nuxt on Cloudflare without the need for any configuration. It provides features such as SQL database, Key-Value data storage, Blob storage for static assets, and Cache storage for server responses.
Features:
- SQL database: Store application data with hubDatabase()
- Key-Value storage: Globally accessible JSON data storage with low latency using hubKV()
- Blob storage: Store static assets like images and videos with hubBlob()
- Cache storage: Cache server route responses or functions with Nitro’s cachedEventHandler and cachedFunction
Installation:
- Install @nuxthub/core dependency to your project:
npm install @nuxthub/core
- Install wrangler development dependency to your project:
npm install -D wrangler
- Add @nuxthub/core to the extends section of nuxt.config.ts
That’s it! You can now use NuxtHub features in your Nuxt app ✨
Summary:
NuxtHub is a powerful platform for building full-stack applications with Nuxt on Cloudflare. With features like SQL database, Key-Value storage, Blob storage, and Cache storage, developers can easily create applications without worrying about configuration. By following the simple installation guide, developers can start utilizing NuxtHub’s capabilities in their projects.