diff --git a/android/local.properties.template b/android/local.properties.template index e41a73bc..14266a72 100644 --- a/android/local.properties.template +++ b/android/local.properties.template @@ -10,9 +10,12 @@ sdk.dir=/path/to/your/android/sdk -# Optional backend overrides for Android development: -# Emulator default should usually stay 10.0.2.2 for the local machine. -petstore.backend.emulatorUrl=http\://10.0.2.2\:8080/ +# Backend URLs — swap comments to switch between local and remote. +# Emulator default is 10.0.2.2 (maps to the host machine's localhost). +# For a physical device, use the host machine's LAN IP. -# Physical device example. Replace with the machine IP running the backend. -petstore.backend.deviceUrl=http\://10.0.0.200\:8080/ +petstore.backend.emulatorUrl=http\://10.0.2.2\:8080/ +#petstore.backend.emulatorUrl=https\://petshop-backend.nicepond-c7280126.westus2.azurecontainerapps.io/ + +petstore.backend.deviceUrl=http\://192.168.x.x\:8080/ +#petstore.backend.deviceUrl=https\://petshop-backend.nicepond-c7280126.westus2.azurecontainerapps.io/ diff --git a/backend/.env.example b/backend/.env.example index dab52388..c95519e1 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,5 +1,6 @@ JWT_SECRET= STRIPE_SECRET_KEY=sk_test_... +NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_... OPENROUTER_API_KEY=sk-or-v1-... RESEND_API_KEY=re_... RESEND_FROM=PetShop \ No newline at end of file diff --git a/desktop/connectionpetstore.properties.example b/desktop/connectionpetstore.properties.example index 426ecafb..63ee3a93 100644 --- a/desktop/connectionpetstore.properties.example +++ b/desktop/connectionpetstore.properties.example @@ -1,3 +1,7 @@ url=jdbc:mysql://127.0.0.1:3306/Petstoredb?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC user=petapp -password=petapppass \ No newline at end of file +password=petapppass + +# Backend URL — swap comments to switch between local and remote +api.baseUrl=http://localhost:8080 +#api.baseUrl=https://petshop-backend.nicepond-c7280126.westus2.azurecontainerapps.io \ No newline at end of file