- Install NodeJS https://nodejs.org/en/
- Open Terminal
- cd to a folder where you want the project folder to be. For example,
cd Desktop/cs639
- Install expo commmand line tool, type following command
npm install expo-cli --global
- In terminal, type following command
git clone https://github.com/saraluk/cs639-apartment-react-native-project.git
- cd into cs639-apartment-react-native-project
cd cs639-apartment-react-native-project
- Install Dependencies
npm install
- To start working on a feature, create a new local branch in your computer important !
git checkout -b feat/[branch-name]
- To create your local branch in Github
git push --set-upstream origin feat/[branch-name]
- Start expo
expo start
- Open expo client on a device.Scan the QR code.
- Open project in Text Editor (VSCode)
code .
- Make changes
- Stage and Commit Changes
git add .
git commit -m [commit-message]
git push
git fetch
git merge origin/master
There might be confilcts, after they are fixed, stage and commit changes again
git add .
git commit -m [commit-message]
git push
git checkout master
git pull
Now your local repository has the most updated code from Master branch, then create new branch to work on something else (Do not use the branch that has already been merged, create new branch)
git checkout -b feat/[branch-name]