Every command is intenden to be executed from workspace root.
Make sure to have nx
and dependencies installed
$ npm install -g nx
$ npm install
If 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
localhost
inBRIDGE_BASE_URL
with your server IP address. - Fill FTP data
To run ML server in docker execute:
$ docker-compose --project-directory apps/ml up
To run ML in venv execute:
$ nx run ml:serve
To run bridge execute:
$ nx run ml-bridge:serve
First you have to bootstrap nx integration with react-native (once)
$ nx run ui-mobile:ensure-symlink
$ nx run ui-mobile:sync-deps
Then run the app with your phone plugged in and USB debugging enabled
$ nx run ui-mobile:run-android
To connect to MetaWear band:
- DO NOT pair the band with your phone in Bluetooth settings;
- give the app premission to location in Android settings;