{"id":20268778,"url":"https://github.com/volny/flask-microservices","last_synced_at":"2025-03-03T23:04:21.582Z","repository":{"id":39838216,"uuid":"200451912","full_name":"volny/flask-microservices","owner":"volny","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T00:47:31.000Z","size":120,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T18:57:55.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/volny.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}},"created_at":"2019-08-04T05:02:52.000Z","updated_at":"2023-03-04T05:32:51.000Z","dependencies_parsed_at":"2022-09-19T05:30:42.086Z","dependency_job_id":null,"html_url":"https://github.com/volny/flask-microservices","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/volny%2Fflask-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volny%2Fflask-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volny%2Fflask-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volny%2Fflask-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volny","download_url":"https://codeload.github.com/volny/flask-microservices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241753144,"owners_count":20014252,"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-14T12:20:02.663Z","updated_at":"2025-03-03T23:04:21.552Z","avatar_url":"https://github.com/volny.png","language":"Python","readme":"# following this presentation: \u003chttps://mherman.org/presentations/microservices-flask-docker/#23\u003e\n\nconsisting of 4 \"microservices\"\n\n* Main \u003chttps://github.com/testdrivenio/flask-microservices-main\u003e\n* Users \u003chttps://github.com/testdrivenio/flask-microservices-users\u003e\n* Client \u003chttps://github.com/testdrivenio/flask-microservices-client\u003e\n* Swagger \u003chttps://github.com/testdrivenio/flask-microservices-swagger\u003e\n* Eval \u003chttps://github.com/testdrivenio/flask-microservices-eval\u003e\n\n\n## Steps\n\n### users db\n\n* install users db: `docker-compose up -d --build users-db`  \n  (or just install all services at once with `docker-compose up -d --build`)\n* check if it worked `docker exec -ti users-db psql -U postgres -W`\n\n### users app\n\n* `docker-compose up -d --build users-service`\n* start, seed, test\n\n```sh\n# create and seed the db\ndocker-compose run users-service python manage.py recreate_db\ndocker-compose run users-service python manage.py seed_db\n\n# run unit and integration tests\ndocker-compose run users-service python manage.py test\n```\n\n### client\n\n* build\n\n```sh\n# add env variable\nexport REACT_APP_USERS_SERVICE_URL=localhost\n\n# build and run:\ndocker-compose up -d --build web-service\n```\n\n* test it works by visiting `http://localhost:9000`\n\n### swagger\n\n* `docker-compose up -d --build swagger`\n* check the auto-generated docs at `http://localhost:8080/`\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolny%2Fflask-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolny%2Fflask-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolny%2Fflask-microservices/lists"}