calebgregory / rxdb-architecture

a demo of a react-native mobile application architecture using rxdb as datastore, which supports integration testing and development outside of the react-native runtime
1 stars 0 forks source link

front-end architecture

The architecture of a 'React application' should be such that the user interface (written using the React library) is a layer of superficial tissue around a robust Javascript application. This React-layer should be as thin as humanly possible. Keeping this layer thin helps us avoid testing React components. Instead, we write end-to-end tests and rely on QA to ensure that the UI is working.

Diagram of architecture

PlantUML Diagram

Table of Contents

Getting Started With This App

You'll need

At that point, you can

yarn
yarn gen
yarn start

Testing

yarn test:unit
yarn test:integrations

To run integration tests, you will need to have a credentials file at <repo-root>/test-credentials.json. This is in the same format described above (in Getting Started). You can also use a <repo-root>/test-config.json file. In the absense of either of these, the test suite fallsback to <repo-root>/{credentials,config}.json.

For more info on how and what to test, see the testing doc.

Anticipated Challenges

Objectives

Miscellany link dump