Installation/Maintenance 

Step 1: 

    Install git on your computer https://git-scm.com/downloads 

    Install Node.js (comes with npm) https://nodejs.org/en/  

Step 2: 

Download Visual Studio Code from your browser through: 

https://code.visualstudio.com/download 

Step 3: 

Open Visual Studio Code and select get from version control; from the dropdown, select git. A link will be requested where you will input the following link: https://github.com/edumorlom/moms-infants-healthy.git 

Step 4: 

After the project is cloned in your computer you will be able to access it from your command line interface. After that, go to your project from the terminal by using “cd” and going to the folder where the project is in. 

Step 5: 

Install all the backend node dependencies and expo by running the following commands in the root directory: 

    npm install --global expo-cli 

    npm install && expo install 

 

 

Step 6: 

You must now download the firebase api key file and place it into the /src directory in your local repository. In order to obtain this file, you must contact NuMom Lead Mentor, Eduardo Morales for it at edmorales.97@gmail.com 

Step 7: 

Install the expo go client on your mobile device (or install an Android/iPhone simulator on your computer): 

iOS: https://apps.apple.com/app/apple-store/id982107779 

Android: https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=www 

Step 8: 

Once everything is completed, use the command within the root folder “npx expo login” in order to login with the Credentials of the expo account with permission. This will be provided by your mentor if they do not give your expo account access. 
In order to obtain this info, you must contact NuMom Lead Mentor, Eduardo Morales for it at edmorales.97@gmail.com 

(Moving forward with expo 49 the command “expo start” will no longer work use “npx expo" instead)

  A window will open in your default browser with a QR code to be scanned with your phone. The application now will show up in your phone on the application of the expo client. 

Step 9:

Once the expo login is set up, use the command “npx expo start” in order to start expo.
 
A QR code will appear to be scanned with your phone. The application now will show up in your phone on the application of the expo go client.

Step 10 (optional): 

You can run expo on a virtual device on your computer, which allows further testing on additional devices. View the following links to get started for either iOS or Android: 

iOS: https://docs.expo.io/workflow/ios-simulator/ 

Android: https://docs.expo.io/workflow/android-studio-emulator/ 
