Skip to content

coworking-metz/mobile-app

Repository files navigation

Le Poulailler - Coworking Metz Mobile

Coworking Mobile Banner

This project holds the Coworking Metz mobile application source code.

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Requirements for the software and other tools to build, test and push

  • Git - Version control system
  • Docker - Container platform
  • Node - Cross-platform JavaScript runtime environment
  • expo - Platform for making universal native apps

Install

A step by step series of examples that tell you how to get a development environment running:

git clone git@github.com:coworking-metz/mobile-app.git
cd coworking-mobile
npm i

Start the project

npm start

Mock the API

In case you don't want to rely on the API, you can start mockoon through docker-compose which will mock the responses with random data. Any credentials will work during the login flow.

docker-compose -f mock/docker-compose.yml up -d

Build locally

iOS

SENTRY_DISABLE_AUTO_UPLOAD=true eas build --profile preview --platform ios --local

Then:

  • launch Xcode
  • navigate to Window -> Devices and Simulators -> Devices
  • select your device
  • finally drag and drop the .ipa file in the Installed Apps section

Android

SENTRY_DISABLE_AUTO_UPLOAD=true eas build --profile preview --platform android --local
adb install build-*.apk

Deploy

Everything is done through Expo Application Services. You can install it locally by doing:

npm i -g eas

Build for staging

eas build --profile preview --platform all
eas build --profile preview --platform ios # only for iOS
eas build --profile preview --platform android # only for Android

Versioning

(TAG=1.1.0; git add app.json package.json CHANGELOG.md && git commit -m "chore(version): update to $TAG" && git tag -a $TAG -m "$TAG")
git push origin --tags

Build for production

eas build --profile production --platform all

Submit to the App Store and Play Store

eas submit

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments