Skip to content

Simply Payment/Supply Chain Example in Solidity and React

License

Notifications You must be signed in to change notification settings

lorentsinani/supply-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Supply Chain

This project is an example of a supply chain / simple payment which we can use even in real world.

Installation

First ensure you are in the directory. Ensure that you have installed required dependencies.

Ensure that you are in Truffle Directory. Run truffle develop where you will have 10 wallets with 100 eth each and private keys which you can import into your metamask. After the accounts are shown in terminal please run migrate in the truffle env that you are. This command will deploy contracts and you will have a directory in src which will be named contracts after this you can proceed into running the app like below.

Change directory to Client Directory and start react dev server like below:

$ cd client
$ npm start

About

Real-World Use-Case for this Project

💡 Can be part of a supply-chain solution

💡 Automated Dispatch upon payment

💡 Payment collection without middlemen

Acknowledgment

This project was inspired by Thomas Wiesner's Ethereum Blockchain Developer Bootcamp With Solidity (2024) course on Udemy. While this project shares similarities with the course content, it has been independently developed and customized for learning purposes and being updated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQ

  • How do I use this with Ganache (or any other network)?

    The Truffle project is set to deploy to Ganache by default. If you'd like to change this, it's as easy as modifying the Truffle config file! Check out our documentation on adding network configurations. From there, you can run truffle migrate pointed to another network, restart the React dev server, and see the change take place.

  • Where can I find more resources?

    This Box is a sweet combo of Truffle and Webpack. Either one would be a great place to start!

About

Simply Payment/Supply Chain Example in Solidity and React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published