This is an Expo.io project.
- Clone this repo and jump into the project folder:
$ git clone [email protected]:coopdevs/timeoverflow-mobile-app.git
$ cd timeoverflow-mobile-app
- Install dependencies
$ npm install
More details: https://docs.expo.dev/get-started/installation/.
To run the app on your machine follow these steps:
- Log in to Coopdevs' Expo account:
$ npx expo login
- Run Expo!
$ npx expo start
-
The previous command will output a QR code which will be used later to access the app from your phone.
-
Install Expo's client on your phone: https://docs.expo.dev/get-started/installation/#2-expo-go-app-for-ios-and
-
Open the Expo app and scan the QR code. Now you are running the Time Overflow app on your phone! Make any change on the project and the Expo mobile client will automatically reload the changes. Enjoy!
We use EAS Build, Expo's hosted service for building app binaries. It greatly simplifies the process by building and signing the app with our credentials on their own worker servers ala. CI/CD. Check their docs for more details.
First, install the eas-cli:
$ npm install -g eas-cli
When publishing the app to Expo or building a standalone app, you can choose the profile
. A build profile is a named group of configuration settings required to perform a specific type of build.
If not provided, EAS cli will default to production
, which points the app to production (https://www.timeoverflow.org/) while the staging
channel will point to staging (https://staging.timeoverflow.org/).
To define it, use the --profile
param when building the app:
eas build --profile staging --platform android
or
eas build --profile production --platform android
You can read more about configuring builds at Configuring EAS Build with eas.json.
You can conveniently list and access all the builds from https://expo.dev/accounts/coopdevs/projects/time-overflow/builds.