Skip to content

amichalu/react-redux-front

Repository files navigation

The front demo app REACT + REDUX + REDUX-THUNK

DEMO APP IS BEING REBUILT TO CONFORM TO THE LAST REACT TRENDS LIKE HOOKS, CONTEXT ... AND GOLANG

This is the demo app, kind of invoices viewer utilizing React + Redux store, supplied by backend RESTful API app https://github.com/amichalu/react-redux-back-flask (it's being migrated to GOLANG)

Runtime technologies:

  • caddy - as the https server and the REST API proxy in the live demo
  • React
  • Redux - as the state store
  • redux-thunk - middleware which allows async calls

Dev tools:

OneToManyReactAppScrSht

Install

yarn && yarn build && yarn start

In the local dev http server API calls are forwaded to "proxy": "https://rrapp.amovile.com" (package.json)

Components' structure

                             Container.js        - Component container which renders following components:
                                    |                navigation buttons component <TableNavigation/>
                                    |                table header <TableHeader/>
                                    |                list of <DocumentItem .../> components
                                    |                Component also manges the theme as context
                                    v
                             TableNavigation.js      - Navigation buttons: prev/next/refresh/close all
                                    |      
                                    v
                             TableHeader.js          - Component which  
                                    |                gives the possibility to change the order   
                                    v
                             DocumentItem.js        - he record of the invoice
                                    |         
                                    v
                           DocumentItemDetail.js    - Component renders invoice details once clicked
                                    |                                                            
                                    |
            +-----------+-----------+------------------------------+---------------------------+
            |                       |                              |                           | 
            v                       v                              v                           v
DocumentItemDetailNumber.js DocumentItemDetailHeader.js DocumentItemDetailArticles.js DocumentItemDetailFooter.js
                                    |
                       +------------+------------+
                       |                         |
                       v                         v
                  HeaderItem               HeaderItemCust   

Trivial wrapper function/class presentational components for HTML/CSS:

  DocumentItemDetailNumber.js
  DocumentItemDetailHeader.js + HeaderItem, HeaderItemCust (inside)
  DocumentItemDetailArticles.js
  DocumentItemDetailFooter.js 

About

The front demo app for react + redux practising, fed with data by app https://github.com/amichalu/react-redux-back-flask

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages