{"id":28410791,"url":"https://github.com/icaroov/wa-project-challenge","last_synced_at":"2026-04-07T16:32:10.882Z","repository":{"id":103149101,"uuid":"410942857","full_name":"icaroov/wa-project-challenge","owner":"icaroov","description":"Projeto construído com React + API GraphQL com NestJS, TypeScript, e PostgreSQL, tudo servido através do Docker Compose com dois ambientes.","archived":false,"fork":false,"pushed_at":"2022-03-04T13:07:03.000Z","size":482,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T03:39:58.192Z","etag":null,"topics":["apollo","docker","docker-compose","graphql","nestjs","nodejs","postgresql","react","typeorm","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/icaroov.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,"zenodo":null}},"created_at":"2021-09-27T15:35:54.000Z","updated_at":"2022-03-04T13:12:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b9e328f-2855-4e98-a0ea-496ec0383b53","html_url":"https://github.com/icaroov/wa-project-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icaroov/wa-project-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icaroov%2Fwa-project-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icaroov%2Fwa-project-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icaroov%2Fwa-project-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icaroov%2Fwa-project-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icaroov","download_url":"https://codeload.github.com/icaroov/wa-project-challenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icaroov%2Fwa-project-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","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":["apollo","docker","docker-compose","graphql","nestjs","nodejs","postgresql","react","typeorm","typescript"],"created_at":"2025-06-02T12:38:19.399Z","updated_at":"2026-04-07T16:32:10.875Z","avatar_url":"https://github.com/icaroov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desafio Tech\n\nAPI construída com NestJS 8, React + TypeScript e PostgreSQL + PostgresAdmin.\n\nTodas as aplicações são servidas em containers utilizando Docker. ✨\n\n## Proposta\n\n- Desenvolver um serviço com API GraphQL e uma base de dados de alunos\n  contendo: nome, CPF e e-mail. A API deve listar os alunos, filtrando por quaisquer dos campos, retornando todos, caso nenhum seja informado.\n- Desenvolver uma UI em React que permita realizar consultas a esse serviço, consumindo e exibindo os dados retornados por ele.\n\n## Executando a aplicação\n\n```shell\n# Clonar esse repositório\ngit clone https://github.com/icaroov/wa-project-challenge.git\n\n# Entrar no projeto\ncd wa-project-challenge\n```\n\nCom Docker instalado, existem duas opções: a `production` e a `development`.\n\nEm `production` o Frontend está sendo distribuído de forma estática em um servidor Http [NGINX](https://www.nginx.com/) através do Dockerfile.\n\nPara executar o modo `production` basta executar:\n\n```\ndocker-compose -f docker-compose.prod.yml up\n```\n\nO modo `development` permite a sincronização do código local com o código que está no container através dos `volumes`, e é necessário instalar as dependências antes de executar o `docker-compose`.\n\n```\n# Instale as dependências\nyarn install\n\n# Execute\ndocker-compose -f docker-compose.dev.yml up\n```\n\n### Links\n\n- Client Development: http://localhost:3000\n- Client Production: http://localhost:8081\n- API: http://localhost:5000/graphql\n- PostgresAdmin: http://localhost:5050\n\n### Exemplo de Queries e Mutations\n\n- Listar todos os alunos\n\n```\n  query {\n    getAllStudents {\n      id\n      name\n      email\n      cpf\n    }\n  }\n```\n\n- Registrar um aluno\n\n```\nmutation {\n  createStudent(\n    student: {\n      name: \"Jhon Doe\"\n      cpf: 123456789\n      email: \"jhon@gmail.com\"\n    }\n  ) {\n    id\n    name\n    cpf\n    email\n  }\n}\n```\n\n- Selecionar aluno por e-mail\n\n```\nquery {\n  getStudentByEmail(email: \"jhon@gmail.com\") {\n    id\n    name\n    cpf\n  }\n}\n```\n\nTodo o Schema pode ser encontrado dentro de `/backend/src/schema.graphql`.\n\n## Tecnologias utilizadas\n\n- [NestJS](https://nestjs.com/)\n- [Apollo Server](https://www.apollographql.com/docs/apollo-server/)\n- [Apollo Client](https://www.apollographql.com/docs/react/)\n- [GraphQL](https://graphql.org/)\n- [TypeORM](https://typeorm.io/#/)\n- [Docker](https://www.docker.com/)\n- [React](https://pt-br.reactjs.org/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [NGINX](https://www.nginx.com/)\n\n### Dicas\n\nComandos Docker caso necessário:\n- Deletar todos os containers:\n```\ndocker rm -f $(docker ps -a -q)\n```\n- Deletar todos os volumes:\n\n```\ndocker volume rm $(docker volume ls -q)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficaroov%2Fwa-project-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficaroov%2Fwa-project-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficaroov%2Fwa-project-challenge/lists"}