Location-based APP
Installation & Setup Environment
1. Fork the repository to your Github
Everyone should use his own repository to develop a new feature, and then make a pull request
(PR) for requesting merging the code into master branch. So, first of all, you should click the Fork
button which is at the top-left of the Github to make a new copy of the repository to your own.
Screenshot
2. Clone the code into your local environment
Use Git clone
to clone a mirror copy of code to your dist (Run the command on your terminal):
git clone https://github.com/[YOUR USERNAME]/lbs_ad_app.git
3. Install dependencies
cd lbs_ad_app
npm install
- or - (if using yarn)
yarn
react-native-cli
globally
3. Install Make sure that, you have to install Node.js previously. It is recommended to install Node.js through nvm. Then, run the following command in your terminal:
npm install -g react-native-cli
4. Run the APP in both iOS and Android platforms:
To run your app on iOS:
cd lbs_ad_app
react-native run-ios
- or -
Open deals99_app/ios/Deals99.xcodeproj in Xcode
Hit the Run button
To run your app on Android:
Have an Android emulator running (quickest way to get started), or a device connected cd lbs_ad_app react-native run-android
5. At least, the code should pass lint scripts & CI before making a PR
Switch on Travis CI for you local branch: https://travis-ci.org/profile
Syncing your local branch with the master
1. Configuring the upstream
Following this tutorial: https://help.github.com/articles/configuring-a-remote-for-a-fork/
2. Syncing the local branch
git checkout master
git fetch --all
git rebase upstream/master
git push
Note that, each time when you develop a future, you should use a separated branch.
git checkout -b [the new branche nanme]
Tech Stacks
- React Native
- Redux
- Redux Action Tools, A related reference in Chinese: Redux异步方案选型
- Styled Components: strongly recommend to watch the video to gain the motivation of designing this library.
- NativeBase
- React Navigation