How ascendia-network/app-food-market works
Project type and purpose
• This is a single-page, full-stack dApp (decentralized application) written in React/Redux that implements a food marketplace on the Ambrosus (Ethereum) protocol.
• It has no traditional backend server—business logic, state management, and blockchain calls all happen in the browser via Web3. Static assets are bundled by Webpack and served from the dist folder.
File structure
• Top-level directories:
– src/
· components/ (React components split into HOCs and stateless/generic/specific)
· redux/ (actions, reducers, store configuration)
· utils/ (blockchain & IPFS helpers, validators, retry logic)
· static/, index.html
· app.js (entry point)
– dist/ (production build output)
– designs/ (UI mockups)
– webpack.config.js, package.json, etc.
• Patterns:
– React/Redux for UI and state
– Higher-order components for cross-cutting UI concerns
– Stateless components for visual elements
– Utility modules for Web3, IPFS, transaction building, and event listening
• Deployment config: bundled via Webpack into dist/static, served as a static SPA; dev-server script for local development.
README
• Describes purpose: “Food marketplace application based on Ambrosus protocol.”
• Running instructions: npm install, dev-server, requirement for a running Ethereum node (Parity recommended)