{"id":20772228,"url":"https://github.com/ericneves/quickstartgraphql","last_synced_at":"2026-04-07T08:02:04.287Z","repository":{"id":231586469,"uuid":"780707430","full_name":"EricNeves/quickstartGraphQL","owner":"EricNeves","description":"🪿 Application developed with NodeJS, ExpressJS, MongoDB, GraphQL and Docker...","archived":false,"fork":false,"pushed_at":"2024-04-05T02:07:58.000Z","size":3401,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T23:50:41.828Z","etag":null,"topics":["docker","expressjs","graphql","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/EricNeves.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}},"created_at":"2024-04-02T02:21:52.000Z","updated_at":"2024-04-04T18:00:50.000Z","dependencies_parsed_at":"2025-01-18T07:37:02.475Z","dependency_job_id":null,"html_url":"https://github.com/EricNeves/quickstartGraphQL","commit_stats":null,"previous_names":["ericneves/quickstartgraphql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EricNeves/quickstartGraphQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricNeves%2FquickstartGraphQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricNeves%2FquickstartGraphQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricNeves%2FquickstartGraphQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricNeves%2FquickstartGraphQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricNeves","download_url":"https://codeload.github.com/EricNeves/quickstartGraphQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricNeves%2FquickstartGraphQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["docker","expressjs","graphql","mongodb","nodejs"],"created_at":"2024-11-17T12:19:49.434Z","updated_at":"2026-04-07T08:02:04.282Z","avatar_url":"https://github.com/EricNeves.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch4 align=\"center\"\u003e\n  \u003cbr /\u003e\n  \n  \u003cimg src=\".assets/icon.png\"\u003e\n\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\nAplicação desenvolvida com NodeJs, Express e MongoDB para dispolibilizar uma RESTful API, além de integrar o GraphQL para fornecer uma camada adicional de consulta flexível e eficiente.\n\n\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003eData de criação: Apr 4, 2024\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/EricNeves/quickstartGraphQL?style=flat-square\u0026logo=github\u0026color=%235755FE\" alt=\"Github\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/EricNeves/quickstartGraphQL?style=flat-square\u0026logo=javascript\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/ericneves/quickstartGraphQL?style=flat-square\u0026logo=github\u0026labelColor=%2331363F\u0026color=%23FF204E\"\u003e\n\u003c/p\u003e\n\n\u003cimg src=\".assets/graphql.png\"\u003e\u003cimg src=\".assets/rest.png\"\u003e\n\n#### Intro\n\nEste projeto apresenta um aplicativo construído com **Node.js**, **Express** e **MongoDB**, proporcionando uma **API RESTful** para interagir com os dados. Além disso, ele incorpora o **GraphQL** para oferecer uma alternativa poderosa de consulta de dados.\n\n**GraphQL** vem como uma alternativa para resolver **2 problemas** de **Rest APIS**, que é o caso de **Over-fetching** e **Under-fetching**.\n\n\u003e [!NOTE]\n\u003e\n\u003e - **Over-fetching**: Este problema ocorre quando a API retorna mais dados do que o necessário para uma determinada solicitação.\n\u003e - **Under-fetching**: Este problema acontece quando uma solicitação não fornece informações suficientes, levando o cliente a fazer várias solicitações adicionais para obter os dados necessários.\n\n#### Features\n\n- 🗃️ Padrão Layered Architecture\n- 🐙 Criar usuário\n- 🔑 Autenticação - JWT\n- 👾 Informações do Usuário\n- 🕸️ GraphQL\n  - Query\n    - ✅ Informações do Usuário\n  - Mutation\n    - ✅ Atualizar Informações do Usuário\n- ⚡ Dependencies:\n  - @apollo/server `4.10.2`\n  - bcrypt `5.1.1`\n  - cors `2.8.5`\n  - express `4.19.2`\n  - graphql `16.8.1`\n  - jsonwebtoken `9.0.2`\n  - mongoose `8.2.4`\n\n#### Execute\n\n\u003e [!NOTE]\n\u003e Siga os passos abaixo para a execução do projeto.\n\n```sh\n\n# Clone\n$ git clone https://github.com/EricNeves/quickstartGraphQL.git\n\n# Project Folder\n$ cd quickstartGraphQL\n\n# Install Deps\n$ cd www \u0026\u0026 pnpm install\n\n# Execute Docker - ./quickstartGraphQL\n$ docker-compose up -d --build\n\n```\n\n#### Quickstart\n\n##### 🛸 Rest\n\n```sh\n\n$ curl -X POST \\\n  -d '{ \"name\": \"admin\", \"email\": \"admin@test.com\", \"password\": \"admin\" }' \\\n  -H \"Content-Type: application/json\" \\\n  http://localhost:3030/users\n\n{\n  \"id\": \"660ebf9dc1f55ee8a836f218\",\n  \"name\": \"admin\",\n  \"email\": \"admin@test.com\",\n}\n\n```\n\n```sh\n\n$ curl -X POST \\\n  -d '{ \"email\": \"admin@test.com\", \"password\": \"admin\" }' \\\n  -H \"Content-Type: application/json\" \\\n  http://localhost:3030/users/login\n\n{\n  \"jwt\": \"your-token\"\n}\n\n```\n\n##### 📡 GraphQL\n\n```graphql\n\nquery {\n  getUser {\n    id,\n    name\n  }\n}\n\nHeader: Authorization (JWT) \n\n```\n\n```graphql\n\nmutation {\n  updateUser(input: { name: \"...\", email: \"...\" }) {\n    id\n  }\n}\n\nHeader: Authorization (JWT) \n\n```\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.instagram.com/ericneves_dev/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/32256029\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eEric Neves\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e👋 Me chamo Eric Neves, sou desenvolvedor web com foco em backend e autor deste projeto. \u003cbr /\u003e \u003ca href=\"https://www.instagram.com/ericneves_dev/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge\u0026logo=instagram\u0026logoColor=white\"\u003e\u003c/a\u003e \u003ca href=\"https://linkedin.com/in/ericnevesrr\"\u003e \u003cimg src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\"\u003e\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n### License \n\n\u003cimg src=\"https://img.shields.io/github/license/ericneves/quickstartGraphQL?style=flat-square\u0026logo=github\u0026labelColor=%2331363F\u0026color=%23FF204E\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericneves%2Fquickstartgraphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericneves%2Fquickstartgraphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericneves%2Fquickstartgraphql/lists"}