Written using react-native
, tested on both iOS & Android.
There were a couple of considerations I had when I started the project.
- Do I need unit & snapshot tests?
- Do I need storybook?
- Do I need redux? (and should I use redux-saga?)
- How do I incorporate good 12factor practices in this exam?
- Do I follow atomic design?
- Do I structure using a straightforward variant of
ducks
or follow domain-driven folder structure?
In the end - I ended up with a simple solution using component state instead of redux, no unit tests (as there are no domain-specific logic), no snapshot tests (I designed on the fly), no 12factor (too complex), followed atomic design (but lacking organisms
), and used a variant of ducks
following domain-driven folder structure. (see: https://github.com/erikras/ducks-modular-redux)
Extra setup requried for setting up : Android Studio & XCode for Android & iOS respectively.
- Clone the project
yarn
react-native run-ios
orreact-native run-android