-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82d87d3
commit 6494186
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"identicon", | ||
"noopener", | ||
"noreferrer", | ||
"stakers", | ||
"unstaking" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# DeFi Demo | ||
|
||
DApp developed using the following tech stacks: | ||
|
||
- React.js (CRA) | ||
- Smart Contracts (Solidity) | ||
- Truffle | ||
- Ganache | ||
- Web3.js | ||
- Automated Tests using Mocha and Chai | ||
|
||
|
||
## Quick setup and running | ||
|
||
- Install node in the local (Node version is v12.18.3 and if possible, use the same version for compatibility). | ||
- Download Ganache from https://www.trufflesuite.com/ganache and install it in the local. | ||
- Run Ganache in the local. | ||
|
||
``` bash | ||
$ npm install --g [email protected] # If possible, use the same version for compatibility | ||
|
||
$ npm install # Or yarn install | ||
$ npm run truffle-compile # Compile smart contracts | ||
$ npm run truffle-migrate # (Or npm run truffle-migrate-reset) Deploy the compiled smart contracts | ||
$ npm run truffle-test # Run the automated tests to make sure of the behaviors of the smart contracts | ||
$ npm start # Run the UI website | ||
|
||
$ npm run truffle-issue-dapp-tokens # Issue Dapp tokens to the stakers | ||
``` |