This app works on React Native (iOS, Android) and web.
The commands in the instructions below assume you are in the root of this repo.
- Run
yarn install
. This fetches the dependencies.
- Run
yarn web-watch
. This compiles the TypeScript code and recompiles it whenever any files are changed. - Open localhost:8080 in your browser to view the result.
- Run
yarn rn-watch
. This compiles the TypeScript code and recompiles it whenever any files are changed. - In another command prompt run
yarn start
. This starts the React Native Packager. - Run
yarn run-ios
for iOS, oryarn run-android
for android. - OR use Xcode or Android Studio to build and deploy the native app code just like you would with any other React Native project.
Install these Chrome Extensions:
-
This lets you easily debug apps state and actions, time travel, etc.
-
This lets you debug React components, their props, etc.
Recommended IDE - Visual Studio Code
Recommended Vscode extensions:
Ctrl + Shift + `
git checkout -b great-new-feature
CMD + Shift + B
F5
Edit source files as usual. Build task uses webpack hot reloading. You will see your changes without reloading App State.
This will trigger precommit script which will lint the code and will run unit tests. If these fail, it will not let you commit broken code.
We are using CodePush to deploy mobile app updates directly to their users’ devices.
npm install -g code-push-cli
Project admin will have to give you access before you can release new versions
code-push login