This is a demo project for ZenFlux. It is a simple catalog of products.
shop-catalog uses both
@zenflux/core
@zenflux/redux
- PHP vanilla backend
- Require PHP 7.4
- React
- Redux
http://inewlegend.com/zenflux/demos/shop-catalog/frontends/react-redux/build/
-
Controllers:
-
Cart/Controller - To handle cart items.
-
Cart/Item/Controller - To handle cart item.
-
Catalog/Controller - To handle catalog items per page.
-
Catalog/Item/Controller - To handle catalog item details.
-
Components/Pagination/Controller - To handle pagination.
-
Layout/Sidebar/Controller - Toggle the sidebar, print cart.
-
-
Router Controllers:
- Pages/Controller - Mange which page to show Catalog/Checkout
- Welcome/Controller - Determine if the backend available and to setup the database connection/show errors.
-
Pure React Components:
- Spinner.
- Transaction.
- Navbar.
-
Components with controllers:
- Pagination - Uses simple controller to handle user actions.
- Catalog
- Cart
- Sidebar
-
Components with router controllers:
- Welcome - Use router controller to show different components depends on the needs.
- Error component.
- Welcome component - Setup DB.
- Pages:
- Catalog - Show catalog page.
- Checkout - Show checkout page.
- Welcome - Use router controller to show different components depends on the needs.
git clone https://github.com/ZenFlux/demo-shop-catalog
npm install
npm run backends:php:vanila:start
npm run frontends:react:start
- Press connect.
- Wait few seconds till the pages reloaded.