Every command is intenden to be executed from workspace root.
Make sure to have nx and dependencies installed
$ npm install -g nx
$ npm installIf you want to non-docker ML setup install pipenv, python 3.9 and dependencies
$ sudo apt install pipenv python3.9 # Ubuntu
$ nx run ml:install-all # or "pipenv install --skip-lock"Copy .env.example to .env and fill it:
- Replace
localhostinBRIDGE_BASE_URLwith your server IP address. - Fill FTP data
To run ML server in docker execute:
$ docker-compose --project-directory apps/ml upTo run ML in venv execute:
$ nx run ml:serveTo run bridge execute:
$ nx run ml-bridge:serveFirst you have to bootstrap nx integration with react-native (once)
$ nx run ui-mobile:ensure-symlink
$ nx run ui-mobile:sync-depsThen run the app with your phone plugged in and USB debugging enabled
$ nx run ui-mobile:run-androidTo connect to MetaWear band:
- DO NOT pair the band with your phone in Bluetooth settings;
- give the app premission to location in Android settings;