{"id":19604306,"url":"https://github.com/yashwanth2804/decenttwt","last_synced_at":"2025-07-24T11:33:22.141Z","repository":{"id":101819404,"uuid":"158491007","full_name":"yashwanth2804/decenttwt","owner":"yashwanth2804","description":"Decentralised twitter using #EOS blockchain ","archived":false,"fork":false,"pushed_at":"2018-11-26T12:27:59.000Z","size":163,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T02:21:55.690Z","etag":null,"topics":["demuxjs","eos-blockchain","eosjs","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yashwanth2804.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-21T04:31:42.000Z","updated_at":"2023-09-26T18:08:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fde1900-f962-46b2-bde8-ba94a4ce01cf","html_url":"https://github.com/yashwanth2804/decenttwt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashwanth2804%2Fdecenttwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashwanth2804%2Fdecenttwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashwanth2804%2Fdecenttwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashwanth2804%2Fdecenttwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashwanth2804","download_url":"https://codeload.github.com/yashwanth2804/decenttwt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251196019,"owners_count":21550888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demuxjs","eos-blockchain","eosjs","reactjs"],"created_at":"2024-11-11T09:36:16.281Z","updated_at":"2025-04-27T19:32:34.710Z","avatar_url":"https://github.com/yashwanth2804.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Decentralised twitter, will let you to tweet to Blockchain,EOS.Every tweet you make be on open blockchain.\n\n![alt text](https://github.com/yashwanth2804/eosio-project-demux-example/blob/master/images/EosHOme.png?raw=true \"Logo Title Text 1\")\n\n\n**Prerequisites**\n* firstly install docker \n* install Eos docker image\n* install mongodb image\n\n**Eos docker**\n\u003e Docker pull \u0026 run \n```\ndocker pull eosio/eos:v1.4.2`\n```\n\n```\ndocker run --name eosio \\\n  --publish 7777:7777 \\\n  --publish 127.0.0.1:5555:5555 \\\n  --volume CONTRACTS_DIR:CONTRACTS_DIR \\\n  --detach \\\n  eosio/eos:v1.4.2 \\\n  /bin/bash -c \\\n  \"keosd --http-server-address=0.0.0.0:5555 \u0026 exec nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::history_plugin --plugin eosio::history_api_plugin --plugin eosio::http_plugin -d /mnt/dev/data --config-dir /mnt/dev/config --http-server-address=0.0.0.0:7777 --access-control-allow-origin=* --contracts-console --http-validate-host=false --filter-on='*'\"\n\n```\n\u003e to check if running\n\n```\ndocker logs --tail 10 eosio\n```\n\u003e Make alias\nAdd this to the end of bash.rc file \n\n```\nalias cleos='docker exec -it eosio /opt/eosio/bin/cleos --url http://127.0.0.1:7777 --wallet-url http://127.0.0.1:5555'\n```\n\n\u003e Strat \u0026 stop docker\n```\ndocker start eosio\ndocker stop eosio\n```\n\n**Docker mongo**\n\n\u003e Docker pull \u0026 run\n```\ndocker pull mongo:4.0\n\n```\n```\ndocker run --rm --name mongo_blog_container -d -p 127.0.0.1:27017:27017 mongo:4.0\n```\n\n\u003e Check if running\n\n```\ndocker logs mongo_blog_container --follow\n```\n\n**Setup a development directory**\n\n\u003e select your preferred dir location and create dir\n\n```\nmkdir contracts\ncd contracts\n```\n\u003e take a note of absoulte path \n```\npwd\n```\nnow `CONTRACTS_DIR` = your `pwd` output\n\n**EOSIO Contract Development Toolkit - CDT**\n\n```\ncd CONTRACTS_DIR\ngit clone --recursive https://github.com/eosio/eosio.cdt --branch v1.3.2 --single-branch\ncd eosio.cdt\n./build.sh\nsudo ./install.sh\n\n```\n**Create wallet and import keys**\n\n\u003e create wallet\n\n```\ncleos wallet create --to-console\n\n```\n`This will create default wallet , this will echo a wallet secret key.Which will be used to unlock wallet in future.Save this Master password`\n\n\n\u003e wallet open and list, gives list of wallets \n\n```\ncleos wallet open\n\ncleos wallet list\n```\n\u003e wallet unlock \n\n```\ncleos wallet unlock\n```\n\n**Create development public key**\n```\ncleos wallet create_key\n```\n`now this will be listed in your wallet to check use ` ** cleos wallet keys**\n\n\u003e Take note that `YOUR_PUBLIC_DEPLOYMENT_KEY` = key genrated above \n\n**Import Eosio private key**\nThis key is need to bootstrap the chain and create accounts\n\n```\ncleos wallet import\n```\nimport this private key `5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3`\n\n**Create contract account**\n\n\n```\ncleos create account eosio blog YOUR_PUBLIC_DEPLOYMENT_KEY \n```\n`blog is the account where we will deploy our smart contract`\n\n**Compile and set contract**\n\n```\ncd CONTRACTS_DIR\n\n```\ncopy the blog folder fromthe github repo to this directory.\n\n\u003e Change the dir to blog folder and compile the cpp file, this will generate `wasm`,`abi` files.\n\n```\ncd CONTRACTS_DIR/blog\n\neosio-cpp -o blog.wasm blog.cpp --abigen\n\n```\n\u003e Setting contract \n\n```\ncleos set contract blog CONTRACTS_DIR/blog -p blog@active\n```\n`this will push the contract to the eos blockchain running locally `\n\n**Create user account**\n\nLets create a actual user who tweets to the Eos network,\n\n```\ncleos create key --to-console\n```\n`this above will give you pub and private keys,save these some where`\n\n\u003e USER_PUB_KEY = above genrated public key \n\n\u003e USER_PRIV_KEY = above generated private key\n\n```\ncleos create account eosio yaman USER_PUB_KEY \n\n```\n\nWEB APPLICATION SETUP\n=========\nmake sure your give `npm install` to install required packages , cross check if node and mongodb are running.\n\n**To start  backend**\n\ncd backend\nnpm start\n\n**To start  frontend**\n\ncd frontend\nnpm start\n\n**To stop**, press ctrl+c on your keyboard\n\nSetting up env variables\n===========\n\ncd to `frontend`\nedit .env file to your fit\n\n`REACT_APP_EOSIO_ACCOUNT=whatever the name given (yaman)`\n\n`REACT_APP_EOSIO_PRIVATE_KEY=USER_PRIV_KEY`\n\nFor `.env` in backend you may leave as it is \n\n\n## Code in acction 🏃🏃\n\n[![Eos demo video](https://img.youtube.com/vi/PWVDlGKYahs/0.jpg)](https://www.youtube.com/watch?v=PWVDlGKYahs\u0026feature=youtu.be)\n  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashwanth2804%2Fdecenttwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashwanth2804%2Fdecenttwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashwanth2804%2Fdecenttwt/lists"}