This mobile app is built with React Native and Redux. It consumes an API located here. It offers an instant bike booking service using Location and Bluetooth Low Energy interfaces.
Clone the repo and install dependencies
git clone https://github.com/fnmendez/lof-mobile-app LOFMobileApp
cd LOFMobileApp
yarn
Start a development server and you will be able to run the app in your device
yarn start
If you want to use Android and iOS simulators instead, run
yarn sim
variable | use |
---|---|
API_URI | API base url for requests |
API_SECRET | API secret header for security |
BLE_SERVICE_UUID | BLE Locks service UUID |
BLE_CHARACTERISTIC_UUID | BLE Locks characteristic UUID |
BLE_GET_INFO_PAYLOAD | BLE Locks command payload |
BLE_REQUEST_OPEN_PAYLOAD | BLE Locks command payload |
BLE_REQUEST_LOCK_PAYLOAD | BLE Locks command payload |
MAPBOX_TOKEN | Mapbox token |
- Axios: Handle HTTP requests
- BLE Manager: Offer an interface for Bluetooth Low Energy on Android and iOS.
- Dotenv: Allows to simulate using environment variables in this context.
- Mapbox GL: It offers the map, tracking the user location and some animated actions.
- React Navigation: Offer a navigation system interface with components, APIs and more.
- Redux: Handles the app state and its changes.
- Redux Persist: Restore last Redux state.
- Redux Promise Middleware: Handle async action creators for Redux.
- Redux Thunk: Allow returning functions from Redux action creators and passing an extra argument for them.
- Franco Méndez Z. - Only engineer to develop this mobile app and the API