mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
Make project_id consistent
This commit is contained in:
@@ -43,7 +43,7 @@ Find your project's ID in the **Settings** page.
|
||||
|
||||
Create a new file `lib/appwrite.js` to hold our Appwrite related code.
|
||||
Only one instance of the `Client()` class should be created per app.
|
||||
Add the following code to it, replacing `<YOUR_PROJECT_ID>` with your project ID.
|
||||
Add the following code to it, replacing `<PROJECT_ID>` with your project ID.
|
||||
|
||||
```js
|
||||
import { Client, Databases, Account } from "react-native-appwrite";
|
||||
@@ -51,7 +51,7 @@ import { Client, Databases, Account } from "react-native-appwrite";
|
||||
const client = new Client();
|
||||
client
|
||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
||||
.setProject("<YOUR_PROJECT_ID>") // Replace with your project ID
|
||||
.setProject("<PROJECT_ID>") // Replace with your project ID
|
||||
.setPlatform('com.example.idea-tracker');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user