- git clone the project
- cd to server and do a 'yarn' or 'npm install' (please ensure you have latest version of node)
- run 'node apiserver.js'
- cd to mobile folder
- do 'yarn' or 'npm install'
- open a config file - app.json and change the "api_server" field your PC ip address
- do 'npm run start' (if you have not install Expo, follow the instruction to install it)
- a browser will be lauched with Expo console.
- Use your phone to scan the QR code. The QR is a shortcut to run the demo on your phone via Expo
- after the demo lauched, 50 scooters will be shown on a map (if the "api_server" in app.json is setup correctly).
- tap on any of the scooter marker will pop up a modal that show the distance (to the scooter) and it serial number
- tap on the 'you are here' marker will bring you to a list of dummy trip history page
- zoom in futher if the marker and 'you are here' are too close to each other