mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Restore localhost endpoint in SDK getting started docs (#12859)
The dev port change in a1308ad398 updated SDK-facing GETTING_STARTED docs
to http://localhost:9520/v1. These docs are copied verbatim into published
SDK READMEs and target self-hosted users, whose default install serves on
port 80 — not contributors running the dev compose setup.
This commit is contained in:
1 parent
03a6e72ba3
commit
590ccf07ea
3 files changed
+6
-6
No files matched your search
@@ -9,7 +9,7 @@ $ appwrite login
|
||||
? Enter your password ********
|
||||
✓ Success
|
||||
```
|
||||
This will also prompt you to enter your Appwrite endpoint ( default: http://localhost:9520/v1 )
|
||||
This will also prompt you to enter your Appwrite endpoint ( default: http://localhost/v1 )
|
||||
|
||||
* ### Initialising your project
|
||||
Once logged in, the CLI needs to be initialised before you can use it with your Appwrite project. You can do this with the `appwrite init project` command.
|
||||
@@ -139,5 +139,5 @@ $ appwrite client --reset
|
||||
The Appwrite CLI can also work in a CI environment. The initialisation of the CLI works a bit differently in CI. In CI, you set your `endpoint`, `projectId` and `API Key` using
|
||||
|
||||
```sh
|
||||
appwrite client --endpoint http://localhost:9520/v1 --projectId <PROJECT_ID> --key <API KEY>
|
||||
appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <API KEY>
|
||||
```
|
||||
@@ -34,7 +34,7 @@ import { Client } from 'react-native-appwrite';
|
||||
const client = new Client();
|
||||
|
||||
client
|
||||
.setEndpoint('http://localhost:9520/v1') // Your Appwrite Endpoint
|
||||
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
|
||||
.setProject('455x34dfkj') // Your project ID
|
||||
.setPlatform('com.example.myappwriteapp') // Your application ID or bundle ID.
|
||||
;
|
||||
@@ -65,7 +65,7 @@ import { Client, Account } from 'react-native-appwrite';
|
||||
const client = new Client();
|
||||
|
||||
client
|
||||
.setEndpoint('http://localhost:9520/v1') // Your Appwrite Endpoint
|
||||
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
|
||||
.setProject('455x34dfkj')
|
||||
.setPlatform('com.example.myappwriteapp') // YOUR application ID
|
||||
;
|
||||
|
||||
@@ -15,7 +15,7 @@ Initialize your SDK with your Appwrite server API endpoint and project ID which
|
||||
const client = new Client();
|
||||
|
||||
client
|
||||
.setEndpoint('http://localhost:9520/v1') // Your Appwrite Endpoint
|
||||
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
|
||||
.setProject('455x34dfkj') // Your project ID
|
||||
;
|
||||
```
|
||||
@@ -44,7 +44,7 @@ account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien")
|
||||
const client = new Client();
|
||||
|
||||
client
|
||||
.setEndpoint('http://localhost:9520/v1') // Your Appwrite Endpoint
|
||||
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
|
||||
.setProject('455x34dfkj')
|
||||
;
|
||||
|
||||
|
||||
Reference in new issue
Block a user