{"id":31745037,"url":"https://github.com/dotbithq/sub-account-svr","last_synced_at":"2026-05-18T02:02:00.933Z","repository":{"id":40614378,"uuid":"482699038","full_name":"dotbitHQ/sub-account-svr","owner":"dotbitHQ","description":"The server of registering a sub .bit","archived":false,"fork":false,"pushed_at":"2025-01-23T01:56:05.000Z","size":9912,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-09T12:29:46.908Z","etag":null,"topics":["docker","go","registration","server"],"latest_commit_sha":null,"homepage":"https://app.did.id","language":"Go","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/dotbitHQ.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}},"created_at":"2022-04-18T03:14:10.000Z","updated_at":"2025-01-23T01:56:09.000Z","dependencies_parsed_at":"2023-11-19T06:23:09.113Z","dependency_job_id":"1a1ac0ad-a400-43d9-a7c9-695b0a973083","html_url":"https://github.com/dotbitHQ/sub-account-svr","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/dotbitHQ/sub-account-svr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fsub-account-svr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fsub-account-svr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fsub-account-svr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fsub-account-svr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotbitHQ","download_url":"https://codeload.github.com/dotbitHQ/sub-account-svr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fsub-account-svr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["docker","go","registration","server"],"created_at":"2025-10-09T12:28:29.483Z","updated_at":"2026-05-18T02:02:00.926Z","avatar_url":"https://github.com/dotbitHQ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sub-account-svr\nBackend of .bit sub account service, including registration and management. \n\n# Prerequisites\n\n* Ubuntu 18.04 or newer (2C4G)\n* MYSQL \u003e= 8.0\n* Redis \u003e= 5.0 (for cache)\n* GO version \u003e= 1.17.10\n* [ckb-node](https://github.com/nervosnetwork/ckb) (Must be synced to latest height and add `Indexer` module to ckb.toml)\n* If the version of the dependency package is too low, please install `gcc-multilib` (apt install gcc-multilib)\n* Machine configuration: 4c8g200G\n* [das-database](https://github.com/dotbitHQ/das-database)\n* [sub-account-store](https://github.com/dotbitHQ/sub-account-store)\n\n## Install \u0026 Run\n\n### Source Compile\n\n```bash\n# get the code\ngit clone https://github.com/dotbitHQ/sub-account-svr\n\n# rename config/config.example.yaml to config/config.yaml, then edit config/config.yaml before init mysql database\nmysql -uroot -p\n\u003e source sub-account-svr/tables/sub_account_db.sql;\n\u003e quit;\n\n# compile and run\ncd sub-account-svr\nmake sub\n./sub_account --config=config/config.yaml\n```\n\n### Docker\n* docker \u003e= 20.10\n* docker-compose \u003e= 2.2.2\n\n#### Compose\n\ncopy from das-database `config/config.yaml` and rename to `config/config.database.yaml` and edit it\n\n```bash\nsudo curl -L \"https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\nsudo chmod +x /usr/local/bin/docker-compose\nsudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose\ndocker-compose up -d\n```\n\n#### Docker Run\n_if you already have: mysql,redis,das-database,sub-account-store_\n```bash\ndocker run -dp 8125-8126:8125-8126 -v $PWD/config/config.yaml:/app/config/config.yaml --name sub-account-server admindid/sub-account-svr:latest\n```\n\n### Others\nMore APIs see\n    [API.md](https://github.com/dotbitHQ/sub-account-svr/blob/main/API.md) and [APIApproval.md](https://github.com/dotbitHQ/sub-account-store/blob/main/APIApproval.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotbithq%2Fsub-account-svr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotbithq%2Fsub-account-svr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotbithq%2Fsub-account-svr/lists"}