dapp-possiblities
dapp-possiblities copied to clipboard
Explore possible usage of dapp
Folder structure
-
contracts/
: stores contracts -
clients/
: stores clients interacting with contracts -
migrations/
: stores scripts used to deploy contracts to eth blockchain
Applications
- SimpleStorage: Store and manipulating a value on blockchain [
contract
client
] - PetAdoption: Pet Adoption app on blockchain[
contract
client
] - SimpleCoin: create a coin for yourself[
contract
client
] - SimpleBank: create a central bank on blockchain [
contract
client
] - CrowdFund: A crowdfunding example (broadly similar to Kickstarter) [
contract
client
] - Content Management System [TODO]
Deploy Contracts and test locally
- Install and start Ganache (local, personal Ethereum blockchain)
- Compile contracts
npm run compile
- Migrate contracts to local block chain
npm run migrate
- Interact with contracts
npm run -- exec clients/01.js npm run -- exec clients/02.js ...
Sample DAPPs on the main chain
- DAPP collection website: https://www.stateofthedapps.com/rankings
- oracle and prediction market: https://www.augur.net/
- Job Market Platform: https://ethlance.com/
Good Readings
- Useful Ðapp Patterns: https://github.com/ethereum/wiki/wiki/Useful-%C3%90app-Patterns
- Web compiler
remix
: https://remix.ethereum.org/#version=builtin&optimize=false - Official solidity doc: http://solidity.readthedocs.io/en/v0.4.24/introduction-to-smart-contracts.html
- Learn X in Y minutes solidity: https://learnxinyminutes.com/docs/solidity/
- web3 api: https://github.com/ethereum/wiki/wiki/JavaScript-API
- Awesome eth: https://github.com/btomashvili/awesome-ethereum
- About security: https://github.com/ConsenSys/smart-contract-best-practices/blob/master/README-zh.md
- Other p2p solutions: https://github.com/kgryte/awesome-peer-to-peer
- solidity-baby-steps(might be a little outdated): https://github.com/fivedogit/solidity-baby-steps
Ideas
Make writing dapp as easy as possible
better than truffle
- Write contract
- Compile and deploy
- Interact with contract
Is migrations script necessary?
compilers: web3; http://solidity.readthedocs.io/en/v0.4.24/installing-solidity.html#solcjs
Decentrialized Github
Questions and Answers
How to host content/app freely on decentrialized network? Currently facebook/github provide free content host and store, because they can get profit by ads etc to cover the cost. But on blockchain, hosting any content cost money, free users are a giant group, Is it possible to win them to blockchain?