{"id":15088982,"url":"https://github.com/gustavohps10/teste-precode","last_synced_at":"2026-02-27T14:38:13.707Z","repository":{"id":252264626,"uuid":"839563208","full_name":"Gustavohps10/teste-precode","owner":"Gustavohps10","description":"🐤 Teste Dev Júnior Precode","archived":false,"fork":false,"pushed_at":"2024-08-17T22:15:22.000Z","size":12911,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:16:00.953Z","etag":null,"topics":["composer","css","html","javascript","php","plates","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Gustavohps10.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-08-07T21:49:29.000Z","updated_at":"2024-08-17T22:15:25.000Z","dependencies_parsed_at":"2024-11-27T14:11:33.160Z","dependency_job_id":"b3121011-401f-44ed-bc61-8232dac5f170","html_url":"https://github.com/Gustavohps10/teste-precode","commit_stats":{"total_commits":68,"total_committers":1,"mean_commits":68.0,"dds":0.0,"last_synced_commit":"94579f9e944b15e275141d2e6c3c0338ea774edb"},"previous_names":["gustavohps10/teste-precode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gustavohps10/teste-precode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Fteste-precode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Fteste-precode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Fteste-precode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Fteste-precode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gustavohps10","download_url":"https://codeload.github.com/Gustavohps10/teste-precode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Fteste-precode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421558,"owners_count":23464019,"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":["composer","css","html","javascript","php","plates","postgresql"],"created_at":"2024-09-25T08:38:26.789Z","updated_at":"2025-10-28T15:50:49.296Z","avatar_url":"https://github.com/Gustavohps10.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e\u003cdiv align=\"center\"\u003e\u003cimg height=\"70\" src=\"./src/views/assets/images/precode-logo.png\" /\u003e\u003c/div\u003eTeste para Desenvolvedor Júnior\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/top/Gustavohps10/teste-precode?label=PHP\u0026color=009de1\u0026style=flat-square\u0026logo=php\u0026logoColor=ffffff\"/\u003e\n    \u003cimg src=\"https://img.shields.io/github/commit-activity/w/Gustavohps10/teste-precode?label=Commits\u0026color=009de1\u0026style=flat-square\u0026logo=git\u0026logoColor=ffffff\"/\u003e\n    \u003cimg src=\"https://img.shields.io/github/created-at/gustavohps10/teste-precode?label=Created At\u0026color=009de1\u0026style=flat-square\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGsSURBVEiJxZW/S5VRHIefc7ukpFzoB0iBBGJEcQmHImprqSWucNvCwNEcMpA2ixanRv8Aoa21JYegJXOKDIRoEQe7CVFg+KOgehrue+XlvUfxdqI+23k45/NwDrzfF/531LPqrQK7oNYL7JJaK54vRwp7gL4cGgfq6nyO3QWG1MUcmwQG1KUcWw8RwRxwbY9LdZKoYAH4CjzK0ChwFbiZ2zYBnAHGcuwe0A/cydbXgYm2J8rSCCE8z4RbwFJrnbEDwKkC6wZO5M4NRpvVBXV2F/G+o46pxp5oDThG85lScgjoiglWgA/A00TBCFBto2pDfZhYjvpMtVSAZeAI8DlVAFQASgVYBbqAxbbtnedkTHAR+Am8SWlWe4HjMcENYD6EsJEiAIbbutV+9Yd6O7EcdU5dVs3DGfWLWkksP28zszsCtap+V+8nlpfUl+p7dVwVtUd9q77L5kmKYEr9pV5pjYoy8AQ4B7wGHqsDwDbwscP+g0ANmA4hvFBPQ/OHswa0puJhYBDYBL79wSWmgQd77vgX0/QVzS/6U6KjAhyNCWrA5cTyVlb/Us/u+Q0qFg8bVgxnCQAAAABJRU5ErkJggg==\"/\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/gustavohps10/teste-precode?label=License\u0026color=009de1\u0026style=flat-square\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHxSURBVEiJtZS/axVREIW/ScQuKhJELIyKqNjYGYKxsLKwsbAICNHWztikkyAi2BhLG0HwBwoWafIHiBqCpcQmxELBIDbhmcqQ5LPIRJ+buy/7RA8sc3dn7pwzM3sv/GdEnUMN4CJwrEGeLxHxpCtmddLuMNktQUt9pvZuEzfRiaSnw95dwHxErDXUNAlcr5Ls6LDhAzDfIHEr7cO0YyoRMdZQGKhH1O+Vns+lb0BdKszkSrECdRA4C6wDMxExCywCt4G9baFzABHxST0FXAL2pW8cOFxNvFudLiiZVvc0Lncjl+pEtYLnwDngBhv97AWuAneBp8CF3HwUOFTIu5oVr5QYh5J1y2DUsfSdzvevHc7CtboKhtI+Kih7DNzLmHfAcKcKqh+rQy5dHTvT9gBExAKwUIgrYpPgTdpR4H4lZjTtawB1BBgo5FoHXkTE5yKTOqWuZM/71QPquPpDnWqLm6vp/2qS/zGDdoK+DsPra9qSKsGvGUTEsgobv+Rmy4aByxGx3A1BO0p30UJEPEgl+9tUnQFuUn9BrgO3IuLtdgSo/X8lt4ASwXHgfa5fbX5MZee7JSiVO1KzbgT1ZC5bJeeauqieyGdRXUvfSP6KTbCkHoStLRoFZiPiYyYdBgbTNwPc4ffJrsM34GXtgfvX+AkvyO4YoQp6EQAAAABJRU5ErkJggg==\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"100%\" src=\".github/screenshot.png\"\u003e\u003c/p\u003e\n\n## :page_with_curl: Descrição\nO teste consiste em cadastrar um produto na API da Precode. Deve ser desenvolvido uma tela (HTML / CSS) em que possa ser preenchido dos dados do produto e disparar o formulário, fazendo uma requisição na API enviando os dados, capturando a resposta e mostrando na tela qual o retorno (sucesso ou erro).\n\u003e ❗ Não foi utilizado nenhum framework robusto como Laravel ou CodeIgniter, apenas o [Coffeecode Router](https://packagist.org/packages/coffeecode/router) para lidar com roteamento e requisições e o [PlatesPHP](https://platesphp.com/) para criar templates. Também não foi utilizado nenhum framework css como Tailwind ou Bootstrap, apenas CSS e JavaScript puro.\n\n##### :clapper: Video da aplicação\n\u003e Acesse aqui: [Video](https://go.screenpal.com/watch/cZjb36V9AGR)\n \n##### :mag_right: Scripts PostgreSQL\n\u003e Você pode acessar aqui: [scripts.sql](https://github.com/Gustavohps10/teste-precode/blob/main/scripts.sql)\n\n## :dart: Tarefas\n- [x] Cadastrar Produto\n- [x] Criar consultas no banco PostgreSQL\n- [x] Ajustar responsividade\n- [ ] Conteinerização com Docker\n\n## :pushpin: Requisitos\n- [XAMPP (PHP 8.0.30)](https://www.apachefriends.org/pt_br/download.html) (necessário servidor Apache para o roteamento funcionar)\n- [Composer](https://getcomposer.org/download/)\n\n## :gear: Rodando\n\n### Clonando\nFaça o Fork e clone este repositório\n```\ngit clone https://github.com/\u003cyour-profile\u003e/teste-precode\n```\n\n### Variáveis de ambiente\nCrie uma cópia do arquivo ```.env.example``` como ```.env```\n```\ncopy .env.example .env\n```\nDefina a variável `PRECODE_API_TOKEN=` Exemplo: `aBcDeFVLZ09EZnRvO1234567`\n\n### Instalar Dependências\n```\ncomposer install\n```\n\n### Iniciando servidor Apache\nAbra o XAMPP e inicie o Apache\n\u003e Certifique-se de que o projeto esteja na sua pasta `htdocs`\n\n## :hammer_and_wrench: Ferramentas utilizadas\n\u003cp\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=PHP 8.3\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=php\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Composer\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=composer\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=XAMPP\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=xampp\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=HTML\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=html5\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=CSS\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=css3\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=JavaScript\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=javascript\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=PostgreSQL\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=postgresql\u0026style=flat-square\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Insomnia\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=insomnia\u0026style=flat-square\"\u003e\n\u003c/p\u003e\n\n## :adult: Autores\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://gustavohenrique.vercel.app/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/61752235?v=4?s=100\" width=\"100px;\" alt=\"Gustavo Henrique\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGustavo Henrique\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#code-Gustavohps10\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavohps10%2Fteste-precode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavohps10%2Fteste-precode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavohps10%2Fteste-precode/lists"}