Skip to content

snowyukischnee/Police-Marking-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Police Marking App

First, make sure your computer has installed NodeJS, MongoDB, react-native-cli, AndroidSDK with Google Play service installed

Usage

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 install

Install 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-android

Note

This 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

Author

tuannhse04791