{"id":38311771,"url":"https://github.com/edge/lottery","last_synced_at":"2026-01-17T02:32:40.271Z","repository":{"id":165511594,"uuid":"616368204","full_name":"edge/lottery","owner":"edge","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-15T15:09:08.000Z","size":809,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-28T20:12:28.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2023-03-20T08:53:35.000Z","updated_at":"2024-05-02T10:04:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"eec0aae6-da50-4b36-9b1f-3888cd04362f","html_url":"https://github.com/edge/lottery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edge/lottery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edge%2Flottery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edge%2Flottery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edge%2Flottery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edge%2Flottery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edge","download_url":"https://codeload.github.com/edge/lottery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edge%2Flottery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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":"2026-01-17T02:32:40.009Z","updated_at":"2026-01-17T02:32:40.222Z","avatar_url":"https://github.com/edge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://cdn.edge.network/assets/img/edge-logo-green.svg\" width=\"200\"\u003e\n\n# Lottery API\n\nService to calculate and pay XE lottery winnings\n\n## System Requirements\n\n- Node.js v18+\n- Docker or ArangoDB v3.11\n\n## Development\n\nThis project is bundled as a single Docker image for deployment to Edge networks. In local development, it is simpler to run the Node \\(backend) and Vue projects separately.\n\n\u003e The Node application root is here, and the Vue application root is in [web](web/).\n\nBefore you do anything else, copy [.env.develop](./.env.develop) to .env and [web/.env.develop](web/.env.develop) to web/.env, then configure both as required for your testing. These include defaults for working locally, apart from the payer wallet.\n\n\u003e For complete lists of variables, refer to [index.ts](src/index.ts) for Node variables and [web/src/stores/build.ts](./web/src/stores/build.ts) for Vue variables.\n\u003e\n\u003e If running the Docker image, combine all env variables into a single list. Vue frontend variables are distinguished by their `VITE_` [prefix](https://vitejs.dev/guide/env-and-mode.html#env-files).\n\n\u003e A payer wallet (`FUNDS_PAYER_*`) is only required when actually processing payouts. By default, this behaviour is disabled to prevent accidental loss of funds!\n\nTo start the Node backend, execute `docker compose up -d` (to start an ArangoDB database) and then `npm run dev` in the project root. Then, to start the Vue frontend, run `npm run dev` in the [web](web/) directory. To close everything, simply C-c both npm processes and run `docker-compose down` to stop the database.\n\n## Contributing\n\nInterested in contributing to the project? Amazing! Before you do, please have a quick look at our [Contributor Guidelines](CONTRIBUTING.md) where we've got a few tips to help you get started.\n\n## License\n\nEdge is the infrastructure of Web3. A peer-to-peer network and blockchain providing high performance decentralised web services, powered by the spare capacity all around us.\n\nCopyright notice\n(C) 2023 Edge Network Technologies Limited \u003csupport@edge.network\u003e\u003cbr /\u003e\nAll rights reserved\n\nThis product is part of Edge.\nEdge is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version (\"the GPL\").\n\n**If you wish to use Edge outside the scope of the GPL, please contact us at licensing@edge.network for details of alternative license arrangements.**\n\n**This product may be distributed alongside other components available under different licenses (which may not be GPL). See those components themselves, or the documentation accompanying them, to determine what licenses are applicable.**\n\nEdge is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nThe GNU General Public License (GPL) is available at: https://www.gnu.org/licenses/gpl-3.0.en.html\u003cbr /\u003e\nA copy can be found in the file GPL.md distributed with\nthese files.\n\nThis copyright notice MUST APPEAR in all copies of the product!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedge%2Flottery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedge%2Flottery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedge%2Flottery/lists"}