First, make sure your computer has installed NodeJS, MongoDB, react-native-cli, AndroidSDK with Google Play service installed
Firstly, create a database named GMapDB in MongoDB. Then create a collection named myCollection in GMapDB
Then, insert TTL key into this collection:
> db.myCollection.createIndex( { "expireAt": 1 }, { expireAfterSeconds: 0 } )Then, install dependencies of server
$ cd RNProjectServer
$ npm installInstall dependencies & clean react-native app
$ cd RNProject
$ npm install
$ cd android
$ ./gradlew clean
$ cd ../Next, start Android emulator
$ "$PATH_TO_ANDROIDSDK/tools/emulator.exe" -avd "$AVD_NAME"Then, install react-native app on emulator
$ react-native run-androidThis app is tested on Android api 23, IOS is currenly not tested.
You have to modify file ./RNProject/android/utils/app.js by replace your IP address if you want to host local & replace with your custom API services
For further information about API service, see more in RNProjectServer folder
tuannhse04791