Feature/web 9 agregar.env y run tunnel #4
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recuerden copiar .env.example a .env y reemplazar la el valor de API_BASE_URL por la url de donde se encuentre escuchando el servidor e-wallet-api.
Normalmente con utilizar el valor
http://10.0.2.2:3000/api/v1
es suficiente, puesto que busca la API en el mismo equipo donde se esta corriendo la aplicación mobile.Ejemplo:
API_BASE_URL="http://10.0.2.2:3000/api/v1"
IMPORTANTE: si se modifican variables en .env, es necesario ejecutar el comando
expo r -c
para reconstruir el cache,de otro modo, el modulo react-native-dotenv utiliza los valores cacheados y no se ven reflejadas las actualizaciones.
Para mas info ver: goatandsheep/react-native-dotenv#75
npm run tunnel
para ejecutar la app mediante "expo start --tunnel" (Util para cuando no se tiene IP publica)