{"id":21857739,"url":"https://github.com/amitkumarj441/rajasthan-hackathon","last_synced_at":"2026-04-18T06:04:34.352Z","repository":{"id":70229735,"uuid":"85543897","full_name":"amitkumarj441/Rajasthan-Hackathon","owner":"amitkumarj441","description":"Developing ManhoodCoin based on Hyperledger Fabric.","archived":false,"fork":false,"pushed_at":"2017-06-18T18:13:31.000Z","size":1292,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-28T02:35:01.691Z","etag":null,"topics":["blockchain","blockchain-technology","bluemix-push","docker","docker-container","gerrit","git","golang","hyperledger-fabric","pip"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amitkumarj441.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-03-20T06:45:28.000Z","updated_at":"2017-10-20T17:14:01.000Z","dependencies_parsed_at":"2023-02-27T11:00:53.717Z","dependency_job_id":null,"html_url":"https://github.com/amitkumarj441/Rajasthan-Hackathon","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkumarj441%2FRajasthan-Hackathon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkumarj441%2FRajasthan-Hackathon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkumarj441%2FRajasthan-Hackathon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitkumarj441%2FRajasthan-Hackathon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amitkumarj441","download_url":"https://codeload.github.com/amitkumarj441/Rajasthan-Hackathon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235712020,"owners_count":19033575,"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":["blockchain","blockchain-technology","bluemix-push","docker","docker-container","gerrit","git","golang","hyperledger-fabric","pip"],"created_at":"2024-11-28T02:31:22.732Z","updated_at":"2026-04-18T06:04:34.320Z","avatar_url":"https://github.com/amitkumarj441.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rajasthan-Hackathon\n\n## Idea Description : \nDeveloping {Manhood/Humanity}Coins point system where users can honour each other with ManhoodCoins. Later ManhoodCoins can also be collected by wearable devices, or smart meters, rewarding people saving resources (electricity, water, gas) or living a healthy lifestyle reported by their wearable device. To avoid abuse of the system these points are audited by a tweeting auditor (using twitter). The ManhoodCoins points can be used by companies and government bodies to reward people doing good to their communities, health and to the environment.\n\n# Application Background\n\n## Technical Details\n\nTypes of thanks:\n  - small = 1 {Manhood/Humanity}Coins\n  - medium= 5 {Manhood/Humanity)Coins\n  - large = 10{Manhood/Humanity}Coins\n  \nAttributes of a user:\n  1. userID   (unique string, will be used as key)\n  2. balance  (int, computed points from the type of thank)\n  3. thanklist(string slice (array), array of the thanks received by the user)\n  \nAttributes of a thank:\n  1. Thanker  (the name of the person giving the thank)\n  2. ThankType(type of the thank small, medium, large)\n  3. message  (a small message explaining the thank, can be empty)\n  \n## Setting up the development environment \n\n### Overview\n\nIn order to run this project on your system, the hyperledger fabric needs to be setup : [hyperledger/fabric](https://github.com/hyperledger/fabric)\n\n### Prerequisites\n\n  - [Git Client](https://git-scm.com/downloads)\n  - [Go](https://golang.org/) - 1.7 or later\n  - [Docker](https://www.docker.com/products/overview) - 1.12 or later\n  - [Pip](https://pip.pypa.io/en/stable/installing/)\n  \n\n### `pip`, `behave` and `docker-compose`\n     pip install --upgrade pip\n     pip install behave nose docker-compose\n     pip install -I flask==0.10.1 python-dateutil==2.2 pytz==2014.3 pyyaml==3.10 couchdb==1.0 flask-cors==2.0.1 requests==2.4.3 pyOpenSSL==16.2.0 pysha3==1.0b1 grpcio==1.0.4\n     \n     #PIP packages required for some behave tests\n     pip install urllib3 ndg-httpsclient pyasn1 ecdsa python-slugify grpcio-tools jinja2 b3j0f.aop six\n     \n### Steps\n\n### Set your GOPATH\nMake sure you have properly setup your Host's [GOPATH environment variable](https://github.com/golang/go/wiki/GOPATH). This allows for both building within the Host and the VM.\n\n### Cloning the Fabric project\nSince the Fabric project is a Go project, you'll need to clone the Fabric repo to your $GOPATH/src directory. If your $GOPATH has multiple path components, then you will want to use the first one. There's a little bit of setup needed:\n   - `cd $GOPATH/src`\n   - `mkdir -p github.com/hyperledger`\n   - `cd github.com/hyperledger`\n\nBefore proceeding with above steps, follow `Setting your $GOPATH` section\n\n  ### Setting your $GOPATH\n  Define these environment variables in your ~/.bashrc\n   -  `export GOROOT=/usr/local/go`\n   -  `export PATH=${GOROOT}/bin:${PATH}`\n   -  `export GOPATH=${HOME}/other_src/gopath`  # typical value change at will\n   -  `export PATH=${GOPATH}/bin:${PATH}`\n   \nRecall that we are using `Gerrit` for source control, which has its own internal git repositories. Hence, we will need to clone from [Gerrit](https://github.com/hyperledger/fabric/blob/master/docs/source/Gerrit/gerrit.md#Working-with-a-local-clone-of-the-repository). For brevity, \n### `the command is as follows:`\n      git clone ssh://LFID@gerrit.hyperledger.org:29418/fabric \u0026\u0026 scp -p -P 29418 LFID@gerrit.hyperledger.org:hooks/commit-msg fabric/.git/hooks/\n\n#### Note:\nOf course, you would want to replace LFID with your own [Linux Foundation ID](https://identity.linuxfoundation.org) .\n\n### Building the Fabric\nOnce you have all the dependencies installed, and have cloned the repository, you can proceed to build and test the fabric.\n\n### Application Setup\n\nThe codebase should be placed under /root directory. Once you set up the system, you can start the test script to verify the settings. `/tests/humanity_test.sh`\n\nYou should get the following output: TESTS PASSED: 4/4\n\nNow you can start up your network of peers with [Manhood/Humanity}Coins chaincode to serve the backend of the application. `/scripts/4vpeers.sh`\n\nThe backend of this application is running GoLang code on the 4 peer blockchain network on the mainframe, similar to IBM's High Security Bussiness Network. The chaincode itself will create users at the init method call. The user names are stored in a separate part of the database too, in order to get a random name for simulating the selection for a reward.\n\n## Use Cases \n  - The front end application (a mobile app) can connect to this network via Rest API calls.\n  - Coffe bar rewards every 5th person coming in with a free drink with {Manhood/Humanity}Coins greater than 1000 this week.\n  - To honour people, researcher, companies and government bodies for doing good to their communities.\n\n## Check Hackathon Presentation [Click here](https://github.com/amitkumarj441/Rajasthan-Hackathon/commit/c3ee7b878b7de64d17e8becc8451c2644861684f)\n\nDeveloped at [Rajasthan E-Governance Hackathon](https://rajasthan-hackathon.hackerearth.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitkumarj441%2Frajasthan-hackathon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitkumarj441%2Frajasthan-hackathon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitkumarj441%2Frajasthan-hackathon/lists"}