Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuxtclub/appwrite
An easy way to integrate Appwrite with NuxtJS
https://github.com/nuxtclub/appwrite
appwrite nuxt nuxt-module nuxt-modules nuxtjs
Last synced: about 2 months ago
JSON representation
An easy way to integrate Appwrite with NuxtJS
- Host: GitHub
- URL: https://github.com/nuxtclub/appwrite
- Owner: nuxtclub
- License: mit
- Created: 2021-07-07T17:25:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-07T20:13:26.000Z (over 3 years ago)
- Last Synced: 2024-04-28T15:02:54.052Z (9 months ago)
- Topics: appwrite, nuxt, nuxt-module, nuxt-modules, nuxtjs
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @nuxtclub/appwrite
## Setup
1. Add `@nuxtclub/appwrite` dependency to your project
```bash
yarn add @nuxtclub/appwrite # or npm i @nuxtclub/appwrite
```2. Add `@nuxtclub/appwrite` to the `modules` section of `nuxt.config.js`
```javascript
export default {
modules: [
[
'@nuxtclub/appwrite',
{
/* module options */
},
],
],
}
```## Using top level options
```javascript
export default {
modules: ['@nuxtclub/appwrite'],
appwrite: {
/* module options */
},
}
```# Typescript support
Add the types to your `"types"` array in `tsconfig.json` after the `@nuxt/types` entry.
:warning: Use `@nuxt/vue-app` instead of `@nuxt/types` for nuxt < 2.9.
```json
{
"compilerOptions": {
"types": ["@nuxt/types", "@nuxtclub/appwrite"]
}
}
```## Configuration
To start using Appwrite in your project you should place the Project ID and the API Endpoint of your Appwrite project.
You can find this data on the administration panel of your project > Settings.
```javascript
export default {
appwrite: {
project_id: 'YOUR_PROJECT_ID',
endpoint: 'YOUR_API_ENDPOINT',
},
}
```## Usage
This module will inject $appwrite in the context of your application.
Using $appwrite you can access to the Appwrite object of the [Appwrite Client for JavaScript](https://appwrite.io/docs/getting-started-for-web).
Learn more about Appwrite [here](https://appwrite.io/docs).