React Native +Appwrite Node client [ Granular Server Side Control]
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
Opening exp://192.168.100.9:8081
on SM_M115F[phone name]
this is what I get as the name but then the configuration doe snot accept exp
localhost
What do you mean?
Rank 1: Thread
so that is the URL that comes when I start the expo server
Rank 1: Thread
I am insinuating that, its probably the hostname
Rank 1: Thread
this means that we dont need axios
Rank 1: Thread
we can talk to the server functions by using the sdk
Axios?
Yes
Rank 1: Thread
its an npm library like fetch web api
Appwrite is the full backend. You don't need something else. It includes everything to work with it
Not needed if you're using the SDK
Rank 1: Thread
what of this
Rank 1: Thread
this is very cool .. team did a good work then
Then instead of adding localhost in platforms section, you will need to add such IP
Rank 1: Thread
does it need the IP of the phone rendering the react native code or the PC
Rank 1: Thread
When working locally with Expo React Native, you're often using Expo's development server which typically runs on your local machine. The hostname you'd use for Appwrite when working with a locally connected phone would generally be your machine's local IP address.
You can usually find your machine's local IP address through your system settings or by running a command in your terminal or command prompt. For example, on Windows, you can use the ipconfig command, and on macOS or Linux, you can use ifconfig or ip addr commands.
Once you've obtained your local IP address, you can use that IP as the hostname when setting up your Appwrite project. For instance, if your local IP address is 192.168.1.10, you would set 192.168.1.10 as the hostname for your Appwrite project.
Remember, using your local IP as the hostname in your Appwrite project settings allows your Expo app running on a connected device to communicate with the Appwrite backend while in development mode.
Rank 1: Thread
from chatGPT
Rank 1: Thread
yet to try it .. then we can use it to help others
Not sure, maybe the phone
You could try and if it gives you a CORS error, you can try with the PC
Rank 1: Thread
what chatgpt is saying is that I need to use the IP of the pc and then because the phone is connected it would work
If you're accessing the PC through the phone, yes. If you're hosting it directly in the phone, then phone IP