{"id":24493800,"url":"https://github.com/thedefibat/lottery-dapp","last_synced_at":"2025-06-22T16:37:50.981Z","repository":{"id":105985681,"uuid":"280085510","full_name":"theDefiBat/Lottery-DApp","owner":"theDefiBat","description":"A decentralized Lottery System build using Smart Contracts along a UI using React","archived":false,"fork":false,"pushed_at":"2020-07-16T07:40:11.000Z","size":386,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-21T19:44:19.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/theDefiBat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-07-16T07:30:52.000Z","updated_at":"2020-07-16T07:40:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"07c44a08-1071-49f3-ac6a-7bc0b71fde93","html_url":"https://github.com/theDefiBat/Lottery-DApp","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/theDefiBat%2FLottery-DApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDefiBat%2FLottery-DApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDefiBat%2FLottery-DApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDefiBat%2FLottery-DApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theDefiBat","download_url":"https://codeload.github.com/theDefiBat/Lottery-DApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681075,"owners_count":20330156,"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":[],"created_at":"2025-01-21T19:43:38.055Z","updated_at":"2025-03-15T04:09:47.900Z","avatar_url":"https://github.com/theDefiBat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lottery DApp\n\nThis repository contains all code for the smart contracts and front-end.\n\n## Requirements / Dependencies\n* Node\n* NPM\n* Truffle\n* React.js\n\n## Instructions\n\n* Clone the repo `cd into the repo\n* Run the following:\n```\nnpm i -g truffle\nnpm install\ncd app\nnpm install\n```\n* Start the truffle local network:\n```\ntruffle develop\n```\n* Inside the network, compile the contracts and deploy them:\n```\ncompile\nmigrate\n```\n* Open new terminal\n* Run:\n```\ncd app\nnpm start\n```\n\nA browser window should open where you can interact with the contract\n\n## Unit test\n* Solidity unit tests are written in the tests directory, see the demo [test](./test/simpleContract.test.js);\n* React unit tests can be written in there relavent compondents\n\n## Solidity Unit test\n* to run solidity test\n```\ntruffle test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedefibat%2Flottery-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedefibat%2Flottery-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedefibat%2Flottery-dapp/lists"}