Skip to content

Rationally mobile app to be used by retailers/distributors

Notifications You must be signed in to change notification settings

satoshi-gt/mobile-application

 
 

Repository files navigation

Deploy Staging Create Release

SupplyAlly

SupplyAlly helps ensure that everyone can get their fair share of items. By scanning a person's ID, you'll be able to track whether his allocated quota has been used up.

Deployed Staging Application

Expo Staging QR

Development

  1. Setup Sentry. Copy .env.example to .env and populate with your values. You can skip this step if you don't want to use Sentry to track app errors.
  2. Install expo-cli globally
  3. Login to Expo using expo login. Ask someone for the credentials.
  4. Install Expo on your mobile device and/or simulator and login with the same account. When using a mobile device for testing, it needs to be on the same network.
  5. Install dependencies: npm install
  6. Run one of the following to start development:
    • npm run start
    • npm run start:mock: If you'd like to mock the APIs
    • npm run storybook: If you'd like to use Storybook for development
  7. Open Expo and launch the app

Testing

npm run test
npm run test:watch // If you'd like to test specific files

CI/CD

We use Github Actions and have supplied the .gihthub/workflows for setting it up. You will need to add the following secrets to the Github Repo:

EXPO_CLI_PROD_USERNAME
EXPO_CLI_PROD_PASSWORD
EXPO_CLI_TEST_USERNAME
EXPO_CLI_TEST_PASSWORD
SENTRY_AUTH_TOKEN
SENTRY_DSN
SENTRY_ORG
SENTRY_PROJECT

If you're releasing this for the first time, you need to create a tag to specify the initial version of the app. This allows the changelog generator to generate the correct set of changes. A base-ref property will then need to be created in the changelog generator's with parameter. Once released, this property can be removed.

uses: metcalfc/[email protected]
with:
   myToken: ${{ secrets.GITHUB_TOKEN }}
   base-ref: <base-tag> # e.g. prod-0

About

Rationally mobile app to be used by retailers/distributors

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.3%
  • Other 0.7%