hustKiwi / lbs_ad_app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

3. Install react-native-cli globally

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

  1. React Native
  2. Redux
  3. Redux Action Tools, A related reference in Chinese: Redux异步方案选型
  4. Styled Components: strongly recommend to watch the video to gain the motivation of designing this library.
  5. NativeBase
  6. React Navigation

About


Languages

Language:JavaScript 84.7%Language:Objective-C 8.6%Language:Python 3.4%Language:Java 2.9%Language:Makefile 0.3%