{"id":22042683,"url":"https://github.com/renanstn/flask-graphql-example","last_synced_at":"2026-04-18T01:02:33.645Z","repository":{"id":53587319,"uuid":"267966335","full_name":"renanstn/flask-graphql-example","owner":"renanstn","description":"Exemplo simples de app utilizando Flask e Graphql.","archived":false,"fork":false,"pushed_at":"2023-05-01T21:41:31.000Z","size":12,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T13:43:18.584Z","etag":null,"topics":["flask","graphql","python"],"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/renanstn.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":"2020-05-29T22:22:32.000Z","updated_at":"2021-03-22T23:56:25.000Z","dependencies_parsed_at":"2024-11-30T12:13:25.405Z","dependency_job_id":"9081b7f2-bab8-4262-8a70-49fa62f62070","html_url":"https://github.com/renanstn/flask-graphql-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/renanstn/flask-graphql-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanstn%2Fflask-graphql-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanstn%2Fflask-graphql-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanstn%2Fflask-graphql-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanstn%2Fflask-graphql-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renanstn","download_url":"https://codeload.github.com/renanstn/flask-graphql-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanstn%2Fflask-graphql-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"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","graphql","python"],"created_at":"2024-11-30T12:13:12.904Z","updated_at":"2026-04-18T01:02:33.620Z","avatar_url":"https://github.com/renanstn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Graphql Example\n\n*Aplicação em Flask utilizando graphql, desenvolvida para estudo.*\n\nMe baseei [neste](https://dev.to/mesadhan/python-flask-graphql-with-graphene-nla) artigo, porém alterei todo o código para maior organização\n\n## Subindo o ambiente\n\n- Crie e ative um `virtualenv` com os comandos\n    - `python -m venv venv`\n    - `source venv/bin/activate` *(linux)*\n    - `venv\\Scripts\\activate` *(windows)*\n\n- Instale as dependências\n    - `pip install -r requirements.txt`\n\n- Crie alguns dados fakes no banco executando o script:\n    - `python seed.py`\n\n- Suba a aplicação com:\n    - `python run.py`\n\n## Utilizando\n\nUtilize algum client com o insomnia para fazer as requests de **query** ou de **mutation** nos seguintes endpoints:\n\n- `http://127.0.0.1:5000/graphql-query`\n- `http://127.0.0.1:5000/graphql-mutation`\n\n### Exemplo de query\n\n```\n{\n  allPosts{\n    edges{\n      node{\n        title\n        author{\n          name\n          email\n        }\n      }\n    }\n  }\n}\n```\n\n### Exemplo de mutation\n\n```\nmutation {\n  savePost(email:\"cse.sadhan@gmail.com\", title:\"Title 2\", body:\"Blog post 2\") {\n    post{\n      title\n      body\n      author{\n        email\n      }\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanstn%2Fflask-graphql-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenanstn%2Fflask-graphql-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanstn%2Fflask-graphql-example/lists"}