Skip to content

coopdevs/timeoverflow-mobile-app

Repository files navigation

TimeOverflow Mobile App

This is an Expo.io project.

Setup

  1. Clone this repo and jump into the project folder:
$ git clone [email protected]:coopdevs/timeoverflow-mobile-app.git
$ cd timeoverflow-mobile-app
  1. Install dependencies
$ npm install

More details: https://docs.expo.dev/get-started/installation/.

Development

To run the app on your machine follow these steps:

  1. Log in to Coopdevs' Expo account:
$ npx expo login
  1. Run Expo!
$ npx expo start
  1. The previous command will output a QR code which will be used later to access the app from your phone.

  2. Install Expo's client on your phone: https://docs.expo.dev/get-started/installation/#2-expo-go-app-for-ios-and

  3. 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!

Building a standalone app

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

Build profiles

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.