We created a simple web-based application similar to e-commerce using NodeJs and blockchain technology. Solidity was used to create smart contracts, Ganache was used to set up a personal Ethereum Blockchain for testing our Solidity contracts, NodeJs was used to develop web-based applications, and Metamask was used as a wallet.
1. NodeJS 7. babel-preset-env 13. chai-as-promised 2. ExpressJS 8. babel-preset-es2015 14. chai-bignumber 3. ReactJS 9. babel-preset-stage-2 15. react-datepicker 4. Fontawesome 10. babel-preset-stage-3 16. truffle 5. babel-polyfill 11. babel-register 17. web3 6. Bootstrap 12. chai 18. cors Browser Extension: Metamask
npm install {name of dependency}
- Clone the entire repository.
- Open entire folder in any code editor of your choice.
- cd blockchain-ecommerce and npm install in the command prompt.
- Compile smart contract by using command "truffle compile".
- Migrate the migrations using "truffle migrate".
- Test the smart contracts by using the command "truffle test".
- Start ganache and create a project.
- Install metamask extension on browser.
- Start the application using "npm start" and oonnect to metamask wallet.
- Add addresses of account from ganache to metamask.
1. Connect to metamask locally. 2. Add products. 3. Buy products. 4. View all products. 5. View all owned products. 6. Making transactions using metamask.
Link to Demo Video Demo
Roll No. | Name |
---|---|
1911012 | Rushabh Gandhi |
1911027 | Nayan Mandliya |
1911031 | Hussein Motiwala |