react-native-template-desmart
v0.0.1
Published
> Shoplo is an e-commerce sales channels aggregation app that lets user monitor and control business revenue in all points of sales
Downloads
3
Readme
Shoplo
Shoplo is an e-commerce sales channels aggregation app that lets user monitor and control business revenue in all points of sales
High-level concepts / rules
Project was built with some higher-level concepts in mind:
- FP as main paradigm combined with a few concepts from OOP
- Use Flux, CQRS and Event Sourcing in form of Redux abstraction
- Keep Components granural (Atomic Design) and have SRP in mind
- Use Storybook as a tool to build components in separated testable environment
- Use ducks for bundling reducers, action types and actions when using Redux
Used technologies
- React - A JavaScript library for building user interfaces
- React Native - Build mobile apps with React
- React Native Navigation - native iOS / Android navigation
- Redux - predictable state container for JavaScript apps
- Storybook - The UI Development Environment
- Detox - Gray Box E2E tests and automation library for mobile apps
- fastlane - iOS and Android Automation for Continuous Delivery
- flow - A static type checker for JS
Project uses standard as linter and git hooks to keep consistend code formatting throughtout all project's files
How to run project
Make sure you have react-native-cli installed (npm install -g react-native-cli
) then in project's root folder run these commands:
cp .env.example .env
yarn
react-native link
react-native run-ios
/react-native run-android
to run on specific platform
How to run storybook
yarn run storybook
- go to webpage from CLI output (usually it's
localhost:7007
) react-native run-ios
/react-native run-android
to run on specific platform
How to run E2E tests
yarn run test-e2e
FYI: you can change between project and storybook without killing simulator (just run correct JS server: yarn run storybook
or yarn
)