@nuxtclub/appwrite
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@nuxtclub/appwrite

Setup

  1. Add @nuxtclub/appwrite dependency to your project
yarn add @nuxtclub/appwrite # or npm i @nuxtclub/appwrite
  1. Add @nuxtclub/appwrite to the modules section of nuxt.config.js
export default {
	modules: [
		[
			'@nuxtclub/appwrite',
			{
				/* module options */
			},
		],
	],
}

Using top level options

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.

⚠️ Use @nuxt/vue-app instead of @nuxt/types for nuxt < 2.9.

{
	"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.

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.

Learn more about Appwrite here.

Readme

Keywords

Package Sidebar

Install

npm i @nuxtclub/appwrite

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.35 kB

Total Files

6

Last publish

Collaborators

  • imlautaro