Skip to content

sdp-tech/UPCY_Mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • /.env, /ios/Info.plist files are required

How to run this project via Ios simulator in Mac

  • At root directory / run
yarn install
  • Go to /ios and run
pod install
  • Come back to root directory / and run
yarn start

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

How to run this project via Android simulator in Mac

  • First install Android Studio

  • Java 17 is required to run this project via Android simulator

  • To install Java 17, run

brew install openjdk@17
  • Change the ~/.zshrc file by running
vim ~/.zshrc
  • Add the following lines at ~/.zshrc
# Android SDK Settings
export ANDROID_HOME=/your/path/to/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin

# Java Settings
export JAVA_HOME="$(brew --prefix openjdk@17)"
export PATH="JAVA_HOME/bin:$PATH"
  • Run the following code at bash to apply
source ~/.zshrc
  • Go to the root directory / and run
yarn install
yarn start

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published