Code Monkey home page Code Monkey logo

nuxt-appwrite's Introduction

@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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.