{"id":26562928,"url":"https://github.com/aelfproject/aelf-scan-mysql","last_synced_at":"2025-03-22T15:29:19.823Z","repository":{"id":42335211,"uuid":"197905538","full_name":"AElfProject/aelf-scan-mysql","owner":"AElfProject","description":"A mysql extension for block scanning","archived":false,"fork":false,"pushed_at":"2024-02-23T06:51:15.000Z","size":675,"stargazers_count":3,"open_issues_count":23,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-02-23T07:39:29.041Z","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/AElfProject.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-07-20T08:59:03.000Z","updated_at":"2023-01-22T09:35:37.000Z","dependencies_parsed_at":"2024-02-23T07:46:38.843Z","dependency_job_id":null,"html_url":"https://github.com/AElfProject/aelf-scan-mysql","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AElfProject%2Faelf-scan-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AElfProject%2Faelf-scan-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AElfProject%2Faelf-scan-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AElfProject%2Faelf-scan-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AElfProject","download_url":"https://codeload.github.com/AElfProject/aelf-scan-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244977816,"owners_count":20541740,"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-03-22T15:29:19.296Z","updated_at":"2025-03-22T15:29:19.817Z","avatar_url":"https://github.com/AElfProject.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aelf-scan-mysql\n\nA mysql extension for block scanning based on [aelf-block-scan](https://github.com/AElfProject/aelf-block-scan).\n\n## How to start\n\n### Installation\n\n```bash\ngit clone https://github.com/AElfProject/aelf-scan-mysql.git\nnpm install\n```\n\n- install, configure and keep `mysql` and `redis` server running in localhost\n- use `mysql` create a database named `aelf_main_chain`\n\n```bash\ncd ./db/\nbash init_sql.sh\n```\n\n### Development\n\nread and add your own configs in `config.dev.js`, especially the mysql and redis connection configs, _scan.host_ is also noteworthy.\n\n```bash\nnpm run dev\n```\n\nand a pm2 process `aelf-scan-mysql` was started to running the scanning and sql operations, you need to concern\n\n### Production\n\nread and add your own configs in `config.prod.js`, especially the sql config\n\n```bash\nnpm start\n```\n\n**Remember don't commit and push your sql config and password**\n\n`PM2` can be used to stop, start, restart, monitor the process `aelf-scan-mysql`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faelfproject%2Faelf-scan-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faelfproject%2Faelf-scan-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faelfproject%2Faelf-scan-mysql/lists"}