# sample_dapp **Repository Path**: winter365/sample_dapp ## Basic Information - **Project Name**: sample_dapp - **Description**: Sample Dapp with three contracts, optimized to use Ganache, Truffle to run backend blockchain locally. Based on a tutorial from Gregory (http://dappuniversity.com/). https://youtu.be/99pYGpTWcXM - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-03-06 - **Last Updated**: 2022-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Prerequisites - Make sure your have Solidity Extended extention in VS Code. - Install Ganache GUI or ganache-cli, e.g. ```sh brew install ganache-cli ``` - Run ganache, e.g.: ```sh ganache-cli -p 8999 --accounts 4 --debug ``` - Correct port settings in `truffle-config.js` - Run migrations: ```sh npm run truffle test npm run truffle migrate --reset ``` ```sh yarn start ``` Open up Ethereum-compatible device: http://localhost:3000/ ###### Links - [video](https://youtu.be/99pYGpTWcXM) - [project source code](https://github.com/dappuniversity/eth_swap), [empty starter_kit](https://github.com/dappuniversity/starter_kit) - dependencies: - **ganache** – local blockchain server - **truffle** – smart contract development framework (write on solidity language) - metamask extension for the browser - indention ##### Workaround - To let truffle know we need to put some piece of information about how to connect **ganache**. - ERC-20 token standard. github.com/gemccubbin/ ##### How to migrate Dapp to Ethereum Mainnet - [Creating a dApp and migrating to the Ethereum Mainnet (DAY 3)](https://www.youtube.com/watch?v=EnIrWNFwN-U) - [code source](https://github.com/kiecodes/nft)