-
Notifications
You must be signed in to change notification settings - Fork 2
Build and Run the App
For the app environment, we use the package manager yarn. You can install it via npm
npm install --global yarn
yarn --version #check version
In the cloned project (refer to Build Documentation) root, we can now install all the needed dependencies for the app by running the command
yarn
This will also download the expo framework which we use to deploy and run the app.
- Make sure that you have no previous installation of
node_modules
in your root directory from other tools likenpm
before runningyarn
. This might interfere with yarn.
You can either execute the app on your personal phone or an emulator. The following steps will require access to a development build. Ask one of the friendly developers of this repository :).
To download a development build, sign into your expo account here. Click on the amos-health-ai-framework
organization.
Now, click on the AiLixir
project.
On the left side, navigate to Builds
. Click on the topmost build. Now click on Install
.
- Scan the showing QR-code with your device, et voilà, it will install the development build on your device.
- Alternatively, if you want to use an emulator, click on the three dots to the right and download the build on your computer. Once you have the emulator running, drag and drop the downloaded build file on your emulator.
You can use Android Studio to set up an emulator. Follow the steps detailed under Set up Android Studio
on the official expo documentation.
Once you have installed the dependencies and the development build of the app, you are ready to run it! :) If you haven't already In your terminal, execute
yarn start
It should say Using development build
, otherwise press 's'
.
Now on your device, scan the QR code. If you are using an emulator you can instead press 'a'
.
Et voilà, this should run the app on the chosen device.