Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/web 9 agregar.env y run tunnel #4

Merged
merged 6 commits into from Oct 25, 2022

Conversation

jmostro
Copy link
Collaborator

@jmostro jmostro commented Oct 24, 2022

  • Se agregaron archivos .env y .env.example para configuración de variables de entorno.

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

  • Se agrego el script npm run tunnel para ejecutar la app mediante "expo start --tunnel" (Util para cuando no se tiene IP publica)

Copy link
Owner

@davslabs davslabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Solo revisa lo que te comente 🚀

babel.config.js Outdated Show resolved Hide resolved
src/types/env.d.ts Outdated Show resolved Hide resolved
@davslabs davslabs added the feature New feature or request label Oct 24, 2022
@davslabs davslabs merged commit c82d30d into develop Oct 25, 2022
@jmostro jmostro deleted the feature/web-9-Agregar.env-y-run-tunnel branch November 6, 2022 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants