EcoMarket is an open marketplace that directly connects buyers of used and recycled plastics with individuals and businesses who want to donate or sell them.
For more details on the vision of EcoMarket, and how it works, refer to its BUIDL page on DoraHacks.
- TRONLink Wallet
- Node, npm, and Yarn
- MongoDB
git clone https://github.com/ChainBuilderPO/ecomarket.git
From within the cloned repo, go to the backend
folder and do these:
-
Rename the
.env.example
file to.env
-
Add relevant variables to the
.env
file.-
DELIVERY_EXPIRY_DEFAULT
is the period after which a delivery expires if not completed by a recycler. -
COOL_OFF_PERIOD
is the period after which a recycler can claim their rewards, if no dispute was raised by the company.
-
-
Install dependencies
npm install
-
Seed sample data, if you like
node seeders/LocationSeeder.js node seeders/CategorySeeder.js node seeders/CompanySeeder.js node seeders/CollectionCenterSeeder.js node seeders/CollectorSeeder.js node seeders/RequestsSeeder.js
-
start backend
npm run start:dev
Browse to the frontend
folder from the repo, and:
-
Install dependencies
yarn
-
Run the frontend
yarn dev
The EcoMarket smart contract is currently deployed on the TRON Sashta testnet:
-
Contract Address -
TEiWrhHweK4haxPXgNcRbropX4prMuLUYy