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.
undefinedRelease Notesundefined
First, add nuxt-appwrite dependency to your project
yarn add nuxt-appwrite # or npm install nuxt-appwrite
Next, add nuxt-appwrite to the modules section of nuxt.config
export default {
modules: ['nuxt-appwrite'],
appwrite: {
/* module options */
}
}
endpointStringhttps://cloud.appwrite.io/v1Appwrite API endpoint (Console -> Project -> Setting -> API Endpoint)
projectStringnullAppwrite project ID (Console -> Project -> Setting -> Project ID)
export default {
modules: [
'nuxt-appwrite'
],
appwrite: {
endpoint: 'https://cloud.appwrite.io/v1',
project: 'nuxt-playground',
}
}
Using useAppwrite composable:
const { account } = useAppwrite()
try {
const res = await account.get()
console.log(res)
} catch (err) {
console.log(err)
}
Currently Not Supported
yarn install or npm installnpm run devCopyright © Herdi Tr. iam@hrdtr.xyz
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.