{"id":20959280,"url":"https://github.com/badkk/advocatehub-server","last_synced_at":"2026-04-15T22:35:23.378Z","repository":{"id":70028709,"uuid":"95859793","full_name":"badkk/advocateHub-server","owner":"badkk","description":"MS Hackthon2017 Proj.","archived":false,"fork":false,"pushed_at":"2017-08-21T06:32:59.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T06:33:30.870Z","etag":null,"topics":["flask","gunicorn","mongodb"],"latest_commit_sha":null,"homepage":"http://advocatehubmobile.westus.cloudapp.azure.com/","language":"Python","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/badkk.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":"2017-06-30T07:07:55.000Z","updated_at":"2017-07-28T06:59:27.000Z","dependencies_parsed_at":"2023-03-05T19:45:35.706Z","dependency_job_id":null,"html_url":"https://github.com/badkk/advocateHub-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/badkk/advocateHub-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badkk%2FadvocateHub-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badkk%2FadvocateHub-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badkk%2FadvocateHub-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badkk%2FadvocateHub-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badkk","download_url":"https://codeload.github.com/badkk/advocateHub-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badkk%2FadvocateHub-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31863495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flask","gunicorn","mongodb"],"created_at":"2024-11-19T01:52:29.748Z","updated_at":"2026-04-15T22:35:23.356Z","avatar_url":"https://github.com/badkk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Local Debug Steps\n\n**MAKE SURE YOU ARE ON THE PYTHON3(\u003c3.6) ENVIRONMENT**\n\n### On Dev Mode\n\n1. `pip install flask`\n2. `pip install flask_cors`\n3. `pip install bson`\n4. `pip install pymongo`\n5. `pip install pyqrcode`\n6. `set FLASK_APP=advocateSimpleServer.py`\n7. `flask run`(Single process mode)\n8. Open browser and test REST APIs (may use Chrome extension *Restlet Client*).\n\n### Deploy(Multiprocess Mode)\n1. Choose your own uWSGI Container, you can follow the [link](http://flask.pocoo.org/docs/0.12/deploying/);\n2. Using `Gunicorn` as example:\n    - `pip install gunicorn`\n    - `gunicorn -w 4 -b :13888 --log-level=debug advocateSimpleServer:app`\n\n## Useful Links\n\n[MongoDB Reference](https://docs.mongodb.com/manual/reference/)\n\n[PyMongo Documentation](https://api.mongodb.com/python/current/)\n\n[Gunicorn Documentation](http://gunicorn.org/)\n\n## Problem Solving\n\n1. Run Gunicorn said `'No module named flask'` like [this](https://stackoverflow.com/questions/18776745/gunicorn-with-flask-using-wrong-python)\n    \u003e Maybe the gunicorn load the global pip environment which influence proj., better create the `virtualenv` to make sure you have pure pip environment;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadkk%2Fadvocatehub-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadkk%2Fadvocatehub-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadkk%2Fadvocatehub-server/lists"}