An app for helping you decide what to eat, faster!
As much as possible, code is organized according to the directory structure described in this Medium article.
- Follow the instructions on this page for setting up a local development environment.
- Install
yarn
: https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable - Install
pre-commit
: https://pre-commit.com/#installation
Run the following commands from the project's root directory.
Install project dependencies.
yarn install
Lint code.
yarn lint
Run tests.
yarn test
Compile Typescript.
yarn tsc
Run pre-commit
hooks.
pre-commit run --all-files
Start Metro debugging session.
npx react-native start
Run app in emulator.
npx react-native run-ios
npx react-native run-android
- Update app version. Example: 0.0.1 --> 0.0.2
- Update build number. Example: 1 --> 2
git tag -a v0.0.2 -m "<message>"
git push --tags
Build release version.
npx react-native run-ios --configuration Release
Build release version.
npx react-native run-android --variant=release
Generate release Android App Bundle.
cd android
./gradlew bundleRelease