Simple Twitter in Solidity – 简单的推特坚固区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Simple Twitter in Solidity – 简单的推特坚固区块链毕设代写 是一篇很好的国外资料

Simple Twitter in Solidity

Description

This project creates a sample Dapp that acts like a simple twitter. Where user can do the following actions:

  • Create new tweet
  • Retweet a tweet
  • Comment to a tweet

Requirements

  1. node 12.8.4 or below
  2. ganache/ganache-cli
  3. truffle
  4. Browser that has latest metamask extension (eg. Chrome)
  5. npm
  6. angular-cli npm install -g @angular/cli
  7. docker and docker-compose

Run by docker

docker-compose up 

Wait about < 5 minutes to let docker build/deploy the app

After that, the app should run at http://127.0.0.1:4200

Run manually

  1. Ganache

Run the following command start a new chain with ganache

ganache-cli -a 10 -m "chat adult toddler myth analyst session attack pizza category help split custom" -p 7545 -i 5777 

Port 7545 is now listening. 10 addresses has been generated

Available Accounts ================== (0) 0x81A7101cFB43C070415731149371dC2A0C46c558 (100 ETH) (1) 0xB49BAb9dCcC189DE1dd6aA751188265606324aD0 (100 ETH) (2) 0x88dD2aFBb2bCc0732d7051276f6a9d63e7d979f4 (100 ETH) (3) 0x2d9036cc7a1b3688ca71D657dB9B7eF0d47aA916 (100 ETH) (4) 0xB18Dc1d991bdE7BB763711f174af6BbFe394e96e (100 ETH) (5) 0x2cbE673fe08dc6Dcea1e98D605787235daE6E5Fc (100 ETH) (6) 0x1024eb59a144E77E6B79dd4162672219A4A1A7f9 (100 ETH) (7) 0x3b22AdB58A31c7facfD328646E4919eCf0D18dd2 (100 ETH) (8) 0x2dd440E00FD3f7DeFa0630BB8985842552A2bD76 (100 ETH) (9) 0x1691Ca2ccC87fdd27Bc6C286A43A084cE23ADE24 (100 ETH)  Private Keys ================== (0) 0x29c233bc3c00709e6175de28faf624c5b48c60f6f36ff6a957ad5414b9479688 (1) 0xd0ec57bc8fa5abac188862f8c49725c6717521f14e934d0428c8001796592c20 (2) 0x96a5145aa3b2b5e610ac059e5ec7b7bde3234b8001c471acb87ee24bbecd6b9a (3) 0xab42d29a6a7c3ec270a1e919453b688b9ecb390f740feb840f16bd8e13dc1b69 (4) 0xe676968d63612c9bb991ede7ef501ec363eac576879c0fa5c7c804eb287d23c0 (5) 0x04e364d7b3d1f8d6d4867614203cf9fe1e105df4d74004edf17cec7a433563eb (6) 0xfc25d88a09bdc765a5bc455fe834a924abab8e4ceb475eea2748b88a9ed78470 (7) 0x8de251628e06e99639d227dbd232885f6d643d580f11d769a24bea88300caebd (8) 0xd840c0db5925a358676e82f07ffca9daad1a4a3cc3891fea7976c6ec903ee6ac (9) 0xd1a1a9af9e1a8d707879ac5bec84eb0d414d3aa6c54d02f9a72daea5abde4972 
  1. truffle

At twitter directory, compile contract and deploy contract

truffle compile --all && truffle migrate 
  1. Install metamask extension and import one of above accounts to metamask
  • Add above network to metamask. You can refer the following url: https://metamask.zendesk.com/hc/en-us/articles/360043227612-How-to-add-a-custom-Network-RPC-and-or-Block-Explorer
  • Import an account to metamask using the private key
  1. the application
npm install && ng serve 

An application is now running at http://localhost:4200

Notes

  • User must install metamask and has an account that has ETH in order to use the application
  • User can access through another user via http://localhost:4200/address/user-Address
  • User can post, retweet and comment to tweet

TODO

  • Implement edit function for tweet and comment.

Simple Twitter in Solidity

Description

This project creates a sample Dapp that acts like a simple twitter. Where user can do the following actions:

  • Create new tweet
  • Retweet a tweet
  • Comment to a tweet

Requirements

  1. node 12.8.4 or below
  2. ganache/ganache-cli
  3. truffle
  4. Browser that has latest metamask extension (eg. Chrome)
  5. npm
  6. angular-cli npm install -g @angular/cli
  7. docker and docker-compose

Run by docker

docker-compose up 

Wait about < 5 minutes to let docker build/deploy the app

After that, the app should run at http://127.0.0.1:4200

Run manually

  1. Ganache

Run the following command start a new chain with ganache

ganache-cli -a 10 -m "chat adult toddler myth analyst session attack pizza category help split custom" -p 7545 -i 5777 

Port 7545 is now listening. 10 addresses has been generated

Available Accounts ================== (0) 0x81A7101cFB43C070415731149371dC2A0C46c558 (100 ETH) (1) 0xB49BAb9dCcC189DE1dd6aA751188265606324aD0 (100 ETH) (2) 0x88dD2aFBb2bCc0732d7051276f6a9d63e7d979f4 (100 ETH) (3) 0x2d9036cc7a1b3688ca71D657dB9B7eF0d47aA916 (100 ETH) (4) 0xB18Dc1d991bdE7BB763711f174af6BbFe394e96e (100 ETH) (5) 0x2cbE673fe08dc6Dcea1e98D605787235daE6E5Fc (100 ETH) (6) 0x1024eb59a144E77E6B79dd4162672219A4A1A7f9 (100 ETH) (7) 0x3b22AdB58A31c7facfD328646E4919eCf0D18dd2 (100 ETH) (8) 0x2dd440E00FD3f7DeFa0630BB8985842552A2bD76 (100 ETH) (9) 0x1691Ca2ccC87fdd27Bc6C286A43A084cE23ADE24 (100 ETH)  Private Keys ================== (0) 0x29c233bc3c00709e6175de28faf624c5b48c60f6f36ff6a957ad5414b9479688 (1) 0xd0ec57bc8fa5abac188862f8c49725c6717521f14e934d0428c8001796592c20 (2) 0x96a5145aa3b2b5e610ac059e5ec7b7bde3234b8001c471acb87ee24bbecd6b9a (3) 0xab42d29a6a7c3ec270a1e919453b688b9ecb390f740feb840f16bd8e13dc1b69 (4) 0xe676968d63612c9bb991ede7ef501ec363eac576879c0fa5c7c804eb287d23c0 (5) 0x04e364d7b3d1f8d6d4867614203cf9fe1e105df4d74004edf17cec7a433563eb (6) 0xfc25d88a09bdc765a5bc455fe834a924abab8e4ceb475eea2748b88a9ed78470 (7) 0x8de251628e06e99639d227dbd232885f6d643d580f11d769a24bea88300caebd (8) 0xd840c0db5925a358676e82f07ffca9daad1a4a3cc3891fea7976c6ec903ee6ac (9) 0xd1a1a9af9e1a8d707879ac5bec84eb0d414d3aa6c54d02f9a72daea5abde4972 
  1. truffle

At twitter directory, compile contract and deploy contract

truffle compile --all && truffle migrate 
  1. Install metamask extension and import one of above accounts to metamask
  • Add above network to metamask. You can refer the following url: https://metamask.zendesk.com/hc/en-us/articles/360043227612-How-to-add-a-custom-Network-RPC-and-or-Block-Explorer
  • Import an account to metamask using the private key
  1. the application
npm install && ng serve 

An application is now running at http://localhost:4200

Notes

  • User must install metamask and has an account that has ETH in order to use the application
  • User can access through another user via http://localhost:4200/address/user-Address
  • User can post, retweet and comment to tweet

TODO

  • Implement edit function for tweet and comment.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/17457.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Simple Twitter in Solidity – 简单的推特坚固区块链毕设代写

提供最优质的资源集合

立即查看 了解详情