sdp-tech / UPCY_Mobile

0 stars 8 forks source link

UPCY_Mobile

Before running the project

MAC Settings - Source

  1. Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Ruby
brew install rbenv

rbenv install 2.7.5 # use rbenv v2.7.5

rben global 2.7.5 # set rbenv v2.7.5 as default
rbenv rehash

gem install bundler -v 2.4.22
  1. Install React Native
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash

. ~/.nvm/nvm.sh # activate nvm

nvm install 20.16.0 # we use v20.16.0
  1. Install Watchman
brew install watchman
  1. Install React Native CLI
npm install -g react-native-cli
npm install -g react-native
  1. Install XCode

  2. Install Cocoapods

brew install cocoapods

How to run this project

How to run this project via Ios simulator in Mac

yarn install
pod install
yarn start

By this, you can start the dev project via Ios simulator

How to run this project via Android simulator in Mac

brew install openjdk@17

Java Settings

export JAVA_HOME="$(brew --prefix openjdk@17)" export PATH="JAVA_HOME/bin:$PATH"


- Run the following code at bash to apply
```bash
source ~/.zshrc

By this, you can start the dev project via Android simulator