https://github.com/andrewnguonly/what-to-eat
An app for helping you decide what to eat, faster!
https://github.com/andrewnguonly/what-to-eat
Last synced: 7 days ago
JSON representation
An app for helping you decide what to eat, faster!
- Host: GitHub
- URL: https://github.com/andrewnguonly/what-to-eat
- Owner: andrewnguonly
- Created: 2021-12-11T05:28:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T22:35:02.000Z (over 3 years ago)
- Last Synced: 2025-04-08T17:51:29.005Z (6 months ago)
- Language: TypeScript
- Size: 2.48 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What to Eat?
An app for helping you decide what to eat, faster!
## Code Organization
As much as possible, code is organized according to the directory structure described in [this Medium article](https://medium.com/habilelabs/best-folder-structure-for-react-native-project-a46405bdba7).
## Development
### Setup
1. Follow the instructions on [this page](https://reactnative.dev/docs/environment-setup) for setting up a local development environment.
2. Install `yarn`: https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable
3. Install `pre-commit`: https://pre-commit.com/#installation### Commands
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
```### Running App (emulator)
Start Metro debugging session.
```
npx react-native start
```Run app in emulator.
```
npx react-native run-ios
npx react-native run-android
```## Build
### Update Build Version
1. Update app version. Example: 0.0.1 --> 0.0.2
2. Update build number. Example: 1 --> 2
3. `git tag -a v0.0.2 -m ""`
4. `git push --tags`### iOS
Build release version.
```
npx react-native run-ios --configuration Release
```### Android
Build release version.
```
npx react-native run-android --variant=release
```Generate release Android App Bundle.
```
cd android
./gradlew bundleRelease
```