Setup instructions:
- Install nodejs version (12.18.3 LTS) or higher from https://nodejs.org/en/
- Install Expo cli using command: npm install expo-cli --global
- Install git: https://git-scm.com/downloads
- Clone the git repository: https://github.com/pankajspace/mobileApp.git
- We will use Gitflow Workflow for managing releases. https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
- We will create a separate branch per developer. develop branch will act as integration branch
- Run command: git checkout {your name}. Then run npm install. Start coding!!!
- Inside the repository run command: expo start (Refer https://expo.io/learn for more details)
- Install the Expo app from google play store
List of Git commands in sequence:
- git status: gives current status of your repo
- See above status to make sure you to your branch before starting to code
- git checkout { your branch name}: to go to your branch. Make changes in your branch only
- git stash: Save your changes locally
- git checkout develop: go to develop branch
- git pull: to get remote changes of develop branch on to your local branch
- git checkout {your branch name}: To go to your branch
- git merge develop: To merge develop branch changes in your branch
- git stash pop: bring out your locally saved changes on branch. If any conflicts occur after this command then resolve conflicts
- git add .
- git commit -m "commit message"
- git push: To push your changes to remote repository on git
- Goto github web interface to create the pull request
Useful links:
- ReactJs Docs: https://reactjs.org/docs/getting-started.html
- React Native Docs: https://reactnative.dev/docs/getting-started
- React Native Flexbox: https://reactnative.dev/docs/flexbox
- React Navigation: https://reactnavigation.org/docs/getting-started
- React Native Elements: https://react-native-elements.github.io/react-native-elements/docs/
- Expo Doc: https://docs.expo.io/tutorial/planning/
- Online editor for running ReactJs code: https://codesandbox.io/
- Online editor for running React Native code: https://snack.expo.io/
- Git Workflow: https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow