{"id":38829892,"url":"https://github.com/ravishan16/pyplate","last_synced_at":"2026-01-17T13:21:50.090Z","repository":{"id":85971480,"uuid":"86256321","full_name":"ravishan16/pyplate","owner":"ravishan16","description":"Flask Microservice App","archived":false,"fork":false,"pushed_at":"2025-04-12T23:33:10.000Z","size":34,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T19:15:08.545Z","etag":null,"topics":["alembic","codeclimate","docker","flask","microservice","python","ravishankar","ravishankar-sivasubramaniam","sivasubramaniam","sqlalchemy","sqlite","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ravishan16.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-26T18:45:57.000Z","updated_at":"2025-04-12T23:00:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a2ce3f7-0efe-404d-bb0e-81a58132cadd","html_url":"https://github.com/ravishan16/pyplate","commit_stats":null,"previous_names":["ravishan16/pyplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ravishan16/pyplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravishan16%2Fpyplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravishan16%2Fpyplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravishan16%2Fpyplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravishan16%2Fpyplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ravishan16","download_url":"https://codeload.github.com/ravishan16/pyplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravishan16%2Fpyplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["alembic","codeclimate","docker","flask","microservice","python","ravishankar","ravishankar-sivasubramaniam","sivasubramaniam","sqlalchemy","sqlite","travis-ci"],"created_at":"2026-01-17T13:20:45.292Z","updated_at":"2026-01-17T13:21:50.085Z","avatar_url":"https://github.com/ravishan16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask Microservice App\n======================\n\nSimple Flask App, SQLAchemy, SQLite, Gunicorn, Docker, Microservice, Python\n\n[![Build Status](https://travis-ci.org/ravishan16/FlaskApp.svg?branch=master)](https://travis-ci.org/ravishan16/FlaskApp)[![Code Climate](https://codeclimate.com/github/ravishan16/FlaskApp/badges/gpa.svg)](https://codeclimate.com/github/FlaskApp/CountByAlexa)[![Test Coverage](https://codeclimate.com/github/ravishan16/FlaskApp/badges/coverage.svg)](https://codeclimate.com/github/ravishan16/FlaskApp)[![Issue Count](https://codeclimate.com/github/ravishan16/FlaskApp/badges/issue_count.svg)](https://codeclimate.com/github/ravishan16/FlaskApp)\n[![Docker Hub](https://hub.docker.com/public/images/logos/mini-logo.svg)](https://hub.docker.com/r/ravishan/flaskapp/)\n\nSetup DB\n========\n\n``` python\npython manage.py db init \npython manage.py db migrate \npython manage.py db upgrade\n```\n\nRun Flask Server Local\n======================\n\n``` python\npython manage.py db runserver\n```\n\n## Build Docker\n\n``` shell\ndocker build -t flaskapi-docker:0.0.1 . \n```\n\n## Run Docker image\n\n``` shell\ndocker run -d -p 8000:4000 --name flaskapp flaskapi-docker:0.0.1 \n```\n\n## Docker Pull and Run \n\n``` shell\ndocker run -d -p 8000:4000 --name flaskapp ravishan/flaskapp\n```\n\n##  Check Docker Status\n\n``` shell\ndocker ps -all\n```\n\n## Check Logs\n\n``` shell\ndocker logs -tf flaskapp\n\n\n2017-08-31T18:49:51.237387132Z Running Production Application\n2017-08-31T18:49:51.493803743Z [2017-08-31 18:49:51 +0000] [1] [INFO] Starting gunicorn 19.7.1\n2017-08-31T18:49:51.496746605Z [2017-08-31 18:49:51 +0000] [1] [INFO] Listening at: http://0.0.0.0:4000 (1)\n2017-08-31T18:49:51.496764705Z [2017-08-31 18:49:51 +0000] [1] [INFO] Using worker: sync\n2017-08-31T18:49:51.496767590Z [2017-08-31 18:49:51 +0000] [9] [INFO] Booting worker with pid: 9\n2017-08-31T18:49:51.602635517Z [2017-08-31 18:49:51 +0000] [14] [INFO] Booting worker with pid: 14\n2017-08-31T18:49:51.678074435Z [2017-08-31 18:49:51 +0000] [15] [INFO] Booting worker with pid: 15\n2017-08-31T18:49:51.748691820Z [2017-08-31 18:49:51 +0000] [20] [INFO] Booting worker with pid: 20\n``` \n\n## Smoke Test\n\n``` shell\ncurl -i http://localhost:8000/main/users\n\nHTTP/1.1 200 OK\nServer: gunicorn/19.7.1\nDate: Thu, 31 Aug 2017 18:47:39 GMT\nConnection: close\nContent-Type: application/json\nContent-Length: 18\n\n{\n  \"users\": []\n}\n```\n\n\n-- Ravishankar Sivsasubramaniam\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravishan16%2Fpyplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravishan16%2Fpyplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravishan16%2Fpyplate/lists"}