{"id":22486332,"url":"https://github.com/loomnetwork/solidity-social-example","last_synced_at":"2026-02-02T13:53:25.805Z","repository":{"id":91002414,"uuid":"135224272","full_name":"loomnetwork/solidity-social-example","owner":"loomnetwork","description":"Super simple social network interaction, where users can post and comment on posts","archived":false,"fork":false,"pushed_at":"2019-05-13T12:52:07.000Z","size":18165,"stargazers_count":69,"open_issues_count":3,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-06T17:15:44.084Z","etag":null,"topics":[],"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/loomnetwork.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-05-29T01:09:52.000Z","updated_at":"2024-02-23T20:05:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c785445-1fbd-43e2-9818-77dc4830d4b4","html_url":"https://github.com/loomnetwork/solidity-social-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loomnetwork/solidity-social-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loomnetwork%2Fsolidity-social-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loomnetwork%2Fsolidity-social-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loomnetwork%2Fsolidity-social-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loomnetwork%2Fsolidity-social-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loomnetwork","download_url":"https://codeload.github.com/loomnetwork/solidity-social-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loomnetwork%2Fsolidity-social-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268440366,"owners_count":24250783,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-06T17:14:23.637Z","updated_at":"2026-02-02T13:53:25.724Z","avatar_url":"https://github.com/loomnetwork.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Simple Social Network Example\n\nSample DAppChain showing the integration between LoomProvider, Web3 and [Loom.js](https://github.com/loomnetwork/loom-js) for a super simple social network interaction, where users can post and comment on posts\n\n![](https://dzwonsemrish7.cloudfront.net/items/2W3c2O3G2A1q1l3f3D3d/Screen%20Recording%202018-05-29%20at%2003.35%20PM.gif)\n\n\u003e The smart contract compiled for this examples uses the Solidity version 0.4.24 (SimpleSocialNetwork.sol)\n\n\u003e This example also uses Redis and ElasticSearch to manages a cache layer\n\nDevelopment\n----\n\n### 1.) Run your own DappChain\n\nPlease consult the [Loom SDK docs](https://loomx.io/developers/docs/en/prereqs.html) for further instruction on running your own DappChain.\n\n### 2.) Clone the example project\n\n```bash\ngit clone https://github.com/loomnetwork/solidity-social-example\n```\n\n### 3.) Start the DappChain\n\n```bash\ncd solidity-social-example\n\ncd dappchain\nwget https://storage.googleapis.com/private.delegatecall.com/loom/osx/build-375/loom\nchmod +x loom\n\n\n# Configure\n./loom init\ncp genesis.example.json genesis.json\n\n# Run\n./loom run\n```\n\n### 4.) Start ElasticSearch and Redis\n\n\u003e Notice that both services are required in order to correct run and interact with the application\n\n```bash\n# macOS\nbrew tap homebrew/services\nbrew install elasticsearch\nbrew install redis\n\n# Start services on macOS\nbrew services start elasticsearch\nbrew services start redis\n```\n\n### 5.) Start indexer\n\nThe `indexer.js` is a service which will receive all events from the smart contract and feeds a cache layer built on a message queue and a fast database (Redis + ElasticSearch), it also serves the app with a fresh data on the address `http://localhost:8081/posts` or `http://localhost:8081/comments`\n\nNote this works best on Node8\n```\nbrew install node@8\n```\n\n```bash\n# On second terminal\ncd solidity-social-example/webclient\n# install\nyarn\nnode indexer.js\n```\n\n### 6.) Start the web server\n\nFinally we're going to start the webserver which will supply the interface allowing users to interact to the smart contracts on the Loom DappChain\n\n```bash\n# On third terminal\ncd solidity-social-example/webclient\n\n# Install\nyarn\n\n# Start the demo\nyarn start\n\n```\n\n### 7.) Running\n\nThe Simple Social Network web interface will be available on `http://localhost:8080`\n\n\nLoom Network\n----\n[https://loomx.io](https://loomx.io)\n\n\nLicense\n----\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floomnetwork%2Fsolidity-social-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floomnetwork%2Fsolidity-social-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floomnetwork%2Fsolidity-social-example/lists"}