How install packages:
yarn workspace @oky/mobile add react-native-linear-gradient
yarn workspace @oky/components add redux
How run the backend in production mode:
docker-compose -f docker-compose.yml build --no-cache
docker-compose -f docker-compose.yml up
Remove all node_modules and Pods
yarn rm
Remove all node_modules, Pods and then reinstall them:
yarn reinstall
Clear docker Useful for freeing up disk space and occasionally fixing strange bugs, but will make your next build take a lot longer
yarn rm:docker
Delete all docker volumes (This will delete all the data in your databases, use with caution)
docker volume rm $(docker volume ls -q)
-
There are a few unit tests added and can be expanded upon as needed.
-
Two test suites can be run from the root:
yarn run test:prediction-engine
runs the prediction engine test suiteyarn run test:saga
runs the redux and sagas test suiteyarn run test:all
will run both consecutively
You can use it to debug the React component hierarchy. Run:
yarn devtools
If you're not in a simulator then you also need to run the following in a command prompt:
adb reverse tcp:8097 tcp:8097
Use this command to allow the emulator to access the internet:
emulator -avd <EMULATOR_NAME> -dns-server 8.8.8.8