The application has 3 routes. One main route and 2 child routes.
- Drugs 1.a Drugs/search 1.b Drugs/<path_for_ndc_details>
The application is configured with redux-thunk for the middleware. It uses redux for the store management Immutables for the store management and debugging Framer motion for the animations. eslint for linting
Here is the quick walkthrough on how the app looks on web:
DESIGN:
The design is pretty straightforward. All state changes flow through the centralized store (redux).
Here are the images of the pages in the app:
/drugs
/drugs/search
/drugs/details
/notfound
NOTE: Installation requirements:
- Node version used : v14.0.0
- NPM Version used: v6.14.4
- Because the application is coded in Class models, react router integration was not easy, so I had to create a wrapper in the redux connector for the passed in component.
- Due to time constraints there are certain components which I haven't simplified/improved-to-utilize to reusable component. Excample: Topbar. Loading component which I haven't incorporated as a HOC component for all rendered components.