{"id":27137943,"url":"https://github.com/themarcosramos/transfersapi","last_synced_at":"2026-04-05T23:33:56.719Z","repository":{"id":286227867,"uuid":"960470384","full_name":"themarcosramos/TransfersAPI","owner":"themarcosramos","description":"API RESTful que permita transferências entre usuários","archived":false,"fork":false,"pushed_at":"2025-04-07T13:48:32.000Z","size":1963,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T14:39:19.873Z","etag":null,"topics":["api-rest","docker","dokcer","laravel","mysql","php","phpunit"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/themarcosramos.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":"2025-04-04T13:44:57.000Z","updated_at":"2025-04-07T13:51:08.000Z","dependencies_parsed_at":"2025-04-07T14:49:28.948Z","dependency_job_id":null,"html_url":"https://github.com/themarcosramos/TransfersAPI","commit_stats":null,"previous_names":["themarcosramos/simplified","themarcosramos/transfersapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themarcosramos%2FTransfersAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themarcosramos%2FTransfersAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themarcosramos%2FTransfersAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themarcosramos%2FTransfersAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themarcosramos","download_url":"https://codeload.github.com/themarcosramos/TransfersAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779792,"owners_count":20994570,"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":["api-rest","docker","dokcer","laravel","mysql","php","phpunit"],"created_at":"2025-04-08T04:37:21.215Z","updated_at":"2025-12-30T23:05:10.000Z","avatar_url":"https://github.com/themarcosramos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TransfersAPI \nAPI RESTful que permita transferências entre usuários\n\n## Requisitos  necessários \n\n\u003e [Docker](https://www.docker.com/)  \n\u003e\n\u003e Um editor como o [Visual Studio Code (VSCode)](https://code.visualstudio.com/)  \n\u003e\n\u003e Um cliente REST, como o [Postman](https://www.postman.com/), foi utilizado.\n\n## Como baixar e executar o projeto\n\nSiga os passos abaixo para configurar e executar o projeto localmente:\n\n### 1. Clone o repositório\n\n```bash\ngit clone https://github.com/themarcosramos/TransfersAPI\n```\n\n### 2. Acesse a pasta do projeto\n\n```bash\ncd TransfersAPI/\n```\n\n### 3. Suba os containers com Docker\n\n```bash\ndocker-compose up -d --build\n```\n\n### 4. Verifique o estado dos containers\n\n```bash\ndocker-compose ps\n```\n\n### 5. Configure os arquivos de ambiente\n\n```bash\ncp .env.example .env\ncp .env.testing.example .env.testing\n```\n\n### 6. Acesse o container da aplicação\n\n```bash\ndocker exec -it laravel-app bash\n```\n\n### 7. Instale as dependências PHP\n\n```bash\ncomposer install\n```\n\n### 8. Em um novo terminal, acesse o container do banco de dados\n\n```bash\ndocker exec -it laravel-db mysql -uroot -proot\n```\n\n### 9. Verifique se os bancos de dados foram criados\n\nNo console MySQL, digite:\n\n```sql\nSHOW DATABASES;\n```\n\nConfirme se existem os bancos:\n\n- `transferdb`\n- `transferdb_testing`\n\nDepois, saia do MySQL com:\n\n```sql\nexit;\n```\n\n### 10. Gere a chave da aplicação\n\nDe volta ao container da aplicação:\n\n```bash\nphp artisan key:generate\n```\n\n### 11. Rode as migrations e seeders\n\n```bash\nphp artisan migrate --seed\n```\n\n### 12. Instale o Passport\n\n```bash\nphp artisan passport:install\n```\n\n### 13. Inicie o servidor Laravel\n\n```bash\nphp artisan serve --host=0.0.0.0 --port=8000\n```\n\n\u003e O servidor estará acessível em:\n\u003e - http://localhost:8000 (a partir do navegador da sua máquina)\n\u003e - http://0.0.0.0:8000 (internamente no container ou para testes em rede)\n\n\n### 14. (Opcional) Limpe o cache de configuração e rode os testes\n\nNo container da aplicação:\n\n```bash\nphp artisan config:clear\n```\n```bash\nphp artisan test --env=testing\n```\n---\n\n## Lista de Testes Automatizados\n\n###  [Planejamento de testes](doc/tests/listaTestes.md)\n\n### Screenshot dos teste \n![plot](doc/tests/Screenshot/Screenshot1.png)\n\n![plot](doc/tests/Screenshot/Screenshot2.png)\n\n\n## Diagrama\n### Arquitetura de software\n![plot](doc/imag/software_architectural_diagram.drawio.png)\n\n##### [Arquitetura de software em xml](doc/xml/software_architectural_diagram.drawio.xml)\n\n### Classe \n![plot](doc/imag/classDiagram.drawio.png)\n\n#####  [Classe em xml](doc/xml/ClassDiagram.drawio.xml)\n\n### Fluxo de processo\n![plot](doc/imag/process_flow_diagram.drawio.png)\n##### [Fluxo de processoem xml](doc/xml/process_flow_diagram.drawio.xml)\n\n### Banco de dados\n![plot](doc/imag/databaseDiagram.png)\n\n\n## Pacotes do Laravel usados\n\n### [Passport](https://laravel.com/docs/8.x/passport)\n### [Permission](https://spatie.be/docs/laravel-permission/v4/prerequisites)\n### [Auditing](http://www.laravel-auditing.com/)\n\n##  Setup do Postman para testes da API\n\n### [Collection](doc/postman/TransfersAPI.postman_collection.json)\n### [Environment](doc/postman/TransfersAPI.postman_environment.json)\n\n\n## License\n\nThe [Laravel framework](https://laravel.com) is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemarcosramos%2Ftransfersapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemarcosramos%2Ftransfersapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemarcosramos%2Ftransfersapi/lists"}