{"id":19413495,"url":"https://github.com/wisehackermonkey/suraksha","last_synced_at":"2025-02-25T02:45:41.178Z","repository":{"id":127004255,"uuid":"216300389","full_name":"wisehackermonkey/suraksha","owner":"wisehackermonkey","description":"sms based messaging server using twilio for hackathon","archived":false,"fork":false,"pushed_at":"2022-12-11T10:08:26.000Z","size":13390,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T15:44:02.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/wisehackermonkey.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":"2019-10-20T03:09:08.000Z","updated_at":"2020-03-25T00:19:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5857e32-cc3b-4eb5-8035-e976c7f25442","html_url":"https://github.com/wisehackermonkey/suraksha","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/wisehackermonkey%2Fsuraksha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisehackermonkey%2Fsuraksha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisehackermonkey%2Fsuraksha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisehackermonkey%2Fsuraksha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wisehackermonkey","download_url":"https://codeload.github.com/wisehackermonkey/suraksha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593150,"owners_count":19825930,"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":"2024-11-10T12:33:27.143Z","updated_at":"2025-02-25T02:45:41.152Z","avatar_url":"https://github.com/wisehackermonkey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# suraksha\nGoal: Our mission is to empower migrant women (especially in low resource regions) to have a community of people to reach out to and resources to access.\n\nWhat we learned:\n\nHow to implement a text based network\nState Management using SMS\nMigrant women's needs\nExisting Cultural Networks with India\nLeveraging resources such as NGOs\nDeveloping self sustainable models for a non-profit\nHow we built it: We used Twillio's API to enable text messaging and used node js as our server/business logic\n\nChallenges we faced:\n\nTo make our product available in low connectivity settings - opted for the text based option\nMaking our revenue model self sustainable while being non-exploitative (i.e. not relying on too many external resources for funding) - partnered with local business and telecom companies while also hiring a full time grant writer to source grants\nSafety for migrant women - partnered with existing NGOs to train and vet local women who could act as guides\nManaging a large population on our platform and localizing matches between migrant and local women\nMaintaining a simple/cohesive user flow while meeting the addressing the most significant use cases\n\n\nBuilt using\nJavascript, node.js, and twilio api\n\nDocker how to run\n```bash\n\nhttps://github.com/CloudNativeJS/docker\nhttps://www.lynda.com/Node-js-tutorials/Liveness-readiness-endpoints/808675/2228137-4.html\nhttps://helm.sh/docs/using_helm/#installing-helm\nhttps://chocolatey.org/install\nhttps://hub.helm.sh/charts?q=database\nhttps://github.com/CloudNativeJS/helm\n\nhttps://blog.machinebox.io/deploy-machine-box-in-digital-ocean-385265fbeafd\n\ndocker build -t sura-server -f Dockerfile .\ndocker run -i -p 80:8080 -t sura-server\n\nin browser go to http://localhost/\n\n\n\n\nRUN IN BUILD MODE\ndocker build -t sura-server-tools -f Dockerfile-tools .\n\n\ndocker run -i -v \"$PWD\"/package.json:/tmp/package.json -v \"$PWD\"/node_modules:/tmp/node_modules -w /tmp -t node:10 npm install\n\n\ndocker run -i -p 80:8080  -v \"$PWD\"/:/app -v \"$PWD\"/node_modules:/app/node_modules -t sura-server-tools /bin/run-dev\n\n\nDEBUG\ndocker run -i -p 3000:8080 -p 9229:9229 -t sura-server-tools /bin/run-debug\n\n\nDOCKER FILE RUN\nwget https://raw.githubusercontent.com/CloudNativeJS/docker/master/Dockerfile-run\n\ndocker build -t sura-server-run -f Dockerfile-run ./\ndocker run -i -p 80:8080 -t sura-server-run\n\n\n\nInstall for Raspberry pi\ndocker pull wisehackermonkey/suraksha:1.0.0-rpi\ndocker run -i --user 1001 -p 80:8080 -t wisehackermonkey/suraksha:1.0.0-rpi\nNOTE \nIf you get the error\n\"docker: Error response from daemon: linux spec user: unable to find user node: no matching entries in passwd file.\"\nRUN --user 1001 fixes the error\ndocker run -i --user 1001 -p 80:8080 -t wisehackermonkey/suraksha:1.0.0-rpi\n\n\n\n--------Build notes------\ndocker files\nwget https://raw.githubusercontent.com/CloudNativeJS/docker/master/\n\n\ndocker tag sura-server-run wisehackermonkey/suraksha:1.0.0\ndocker login\ndocker push wisehackermonkey/suraksha:1.0.0\ndocker rmi wisehackermonkey/suraksha:1.0.0\n\n\ndocker pull wisehackermonkey/suraksha:1.0.0\ndocker run -i -p 80:8080 -t wisehackermonkey/suraksha:1.0.0\n\n\nHelm:\nhttps://helm.sh\ninstall via chocolaty\nchoco install kubernetes-helm\ndownload https://github.com/CloudNativeJS/helm\ncopy the /helm/chart to project\nhelm install --name\n\nrun helm chart\nhelm install --name suraksha-server chart/nodeserver\nhelm status suraksha-server\n\ndelete the deployment\nhelm delete --purge suraksha-server\nhelm install  --name suraksha-server  chart/nodeserver\n\nupdate cluster while running\nhelm upgrade suraksha-server  chart/nodeserver\nhelm history suraksha-server\nhelm rollback  suraksha-server 1\n\n\ndeploy to digial ocean\ndocker-machine create --digitalocean-size \"s-1vcpu-1gb\" --driver digitalocean --digitalocean-access-token \u003cPERSONAL_ACCESS_TOKEN\u003e sura\n\n#eval $(docker-machine env sura)\nwindows only\n\u0026 \"C:\\Program Files\\Docker\\Docker\\Resources\\bin\\docker-machine.exe\" env sura | Invoke-Expression\nrun on server \ndocker run -i -p 80:8080 -t wisehackermonkey/suraksha:1.0.0\ndocker run -d -p 80:8080 -t wisehackermonkey/suraksha:1.0.0\nor run forever\ndocker run -d --restart unless-stopped -p 80:8080 -t wisehackermonkey/suraksha:1.0.0\n\nhttp://localhost:31322/ \nhttp://159.203.87.52/\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisehackermonkey%2Fsuraksha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisehackermonkey%2Fsuraksha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisehackermonkey%2Fsuraksha/lists"}