Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 1.43 KB

misc.md

File metadata and controls

75 lines (50 loc) · 1.43 KB

Common commands

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)

Tips

Running Tests

  • There are a few unit tests added and can be expanded upon as needed.

  • Two test suites can be run from the root:

  1. yarn run test:prediction-engine runs the prediction engine test suite
  2. yarn run test:saga runs the redux and sagas test suite
  3. yarn run test:all will run both consecutively

React Developer Tools

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