{"id":24380840,"url":"https://github.com/yei-linux/anna-bot","last_synced_at":"2025-07-06T01:05:02.355Z","repository":{"id":192442019,"uuid":"683456036","full_name":"Yei-Linux/anna-bot","owner":"Yei-Linux","description":"Whatsapp bot for anna","archived":false,"fork":false,"pushed_at":"2023-11-03T21:45:23.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T15:33:33.906Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yei-Linux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-08-26T16:23:18.000Z","updated_at":"2023-08-26T16:26:22.000Z","dependencies_parsed_at":"2023-10-14T10:19:38.973Z","dependency_job_id":"335a5645-cece-4316-bbf5-46812eb87d63","html_url":"https://github.com/Yei-Linux/anna-bot","commit_stats":null,"previous_names":["yei-linux/anna-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yei-Linux/anna-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2Fanna-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2Fanna-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2Fanna-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2Fanna-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yei-Linux","download_url":"https://codeload.github.com/Yei-Linux/anna-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yei-Linux%2Fanna-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263833416,"owners_count":23517373,"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-19T08:31:46.199Z","updated_at":"2025-07-06T01:05:02.331Z","avatar_url":"https://github.com/Yei-Linux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Anna Bot\n\n**Used for supporting any patient interested to have a medical appointment or medical test** \n\n## Setup docker\n```\ndocker build . -t botwhatsapp:latest\ndocker run -d --add-host=host.docker.internal:host-gateway --name bot_last -p 3000:3000 botwhatsapp:latest\n```\n\n## Setup mongosh\n```\nbrew tap mongodb/brew\nbrew install mongodb-community@7.0\nbrew services start mongodb-community@7.0\nbrew services list\n/opt/homebrew/etc/mongod.conf --\u003e add replica set config\nrs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]})\n\nto delete lock file -\u003e sudo rm -rf /tmp/mongodb-27017.sock\nset in bindIp your own ip(or 0.0.0.0) to bridge gateway\ndirectConnection=true :To force operations on the host designated in the connection URI\n```\n\n## Instance connection\n```\nchmod 400 annabotmeta.pem\nssh -i \"annabotmeta.pem\" ubuntu@ec2-{{ip}}.compute-1.amazonaws.com\nsudo apt update \u0026\u0026 sudo apt upgrade -y\nsudo reboot now\n```\n\n## Docker EC2 Instance setup\n```\nsudo apt-get update\nsudo apt-get install ca-certificates curl gnupg\nsudo install -m 0755 -d /etc/apt/keyrings\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg\nsudo chmod a+r /etc/apt/keyrings/docker.gpg\n\necho \\\n  \"deb [arch=\"$(dpkg --print-architecture)\" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \\\n  \"$(. /etc/os-release \u0026\u0026 echo \"$VERSION_CODENAME\")\" stable\" | \\\n  sudo tee /etc/apt/sources.list.d/docker.list \u003e /dev/null\nsudo apt-get update\n\nsudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\nsudo docker run hello-world\n```\n\n## Caprover Installation\n```\nsudo ufw allow 80,443,3000,996,7946,4789,2377/tcp\nsudo ufw allow 7946,4789,2377/udp\nsudo docker run -p 80:80 -p 443:443 -p 3000:3000 -e ACCEPTED_TERMS=true -v /var/run/docker.sock:/var/run/docker.sock -v /captain:/captain caprover/caprover\n\nsudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash\nexport NVM_DIR=\"$([ -z \"${XDG_CONFIG_HOME-}\" ] \u0026\u0026 printf %s \"${HOME}/.nvm\" || printf %s \"${XDG_CONFIG_HOME}/nvm\")\"\n[ -s \"$NVM_DIR/nvm.sh\" ] \u0026\u0026 \\. \"$NVM_DIR/nvm.sh\" # This loads nvm\nnvm install node\n\nnpm install -g caprover\ncaprover serversetup\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyei-linux%2Fanna-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyei-linux%2Fanna-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyei-linux%2Fanna-bot/lists"}