nuxt-appwrite
Cover Image by @Atinux
nuxt-appwrite
Appwrite is a self-hosted solution that provides developers with a set of easy-to-use and integrate REST APIs to manage their core backend needs. This module is made to connect Appwrite SDKs to Nuxt more easily.
Setup
First, add nuxt-appwrite dependency to your project
npx nuxi@latest module add appwrite
Next, add nuxt-appwrite to the modules section of nuxt.config
export default {
modules: ['nuxt-appwrite'],
appwrite: {
/* module options */
}
}
Options
API endpoint - endpoint
- type:
String - default:
https://cloud.appwrite.io/v1
Appwrite API endpoint (Console -> Project -> Setting -> API Endpoint)
Project ID - project
- type:
String - default:
null
Appwrite project ID (Console -> Project -> Setting -> Project ID)
Locale - locale - optional
- type:
String - default:
en
Appwrite locale
Full Example
export default {
modules: [
'nuxt-appwrite'
],
appwrite: {
endpoint: 'https://cloud.appwrite.io/v1',
project: 'nuxt-playground',
locale: 'en'
}
}
Usage
Using useAppwrite composable:
const { account } = useAppwrite()
try {
const res = await account.get()
console.log(res)
} catch (err) {
console.log(err)
}
Server Side User Action
Currently Not Supported
Development
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
License
Copyright (c) Herdi Tr. iam@icm.hrdtr.dev
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.2.1 | ^3.0 | MIT | |
| 1.2.0 | ^3.0 | MIT | |
| 1.1.1 | ^3.0 | MIT | |
| 1.1.0 | ^3.0 | MIT | |
| 1.0.8 | ^3.0 | MIT | |
| 1.0.7 | ^3.0 | MIT | |
| 1.0.6 | ^3.0 | MIT | |
| 1.0.5 | ^3.0 | MIT | |
| 1.0.4 | ^3.0 | MIT | |
| 1.0.3 | ^3.0 | MIT | |
| 1.0.2 | ^3.0 | MIT | |
| 1.0.1 | ^3.0 | MIT | |
| 0.3.0 | MIT | ||
| 0.2.3 | MIT | ||
| 0.2.2 | MIT | ||
| 0.2.0 | MIT | ||
| 0.1.4 | MIT | ||
| 0.1.3 | MIT | ||
| 0.1.2 | MIT |