{"id":36820779,"url":"https://github.com/lbovolini/todo-api","last_synced_at":"2026-01-12T14:00:16.907Z","repository":{"id":54421313,"uuid":"335435166","full_name":"lbovolini/todo-api","owner":"lbovolini","description":"Todo API with PHP","archived":false,"fork":false,"pushed_at":"2021-02-19T00:00:44.000Z","size":245,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-29T21:26:29.414Z","etag":null,"topics":["docker","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbovolini.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}},"created_at":"2021-02-02T22:02:34.000Z","updated_at":"2021-02-26T02:47:30.000Z","dependencies_parsed_at":"2022-08-13T15:10:19.958Z","dependency_job_id":null,"html_url":"https://github.com/lbovolini/todo-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/lbovolini/todo-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbovolini%2Ftodo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbovolini%2Ftodo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbovolini%2Ftodo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbovolini%2Ftodo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbovolini","download_url":"https://codeload.github.com/lbovolini/todo-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbovolini%2Ftodo-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","mysql","php","phpunit"],"created_at":"2026-01-12T14:00:15.061Z","updated_at":"2026-01-12T14:00:16.739Z","avatar_url":"https://github.com/lbovolini.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo List\n\n![CI](https://github.com/lbovolini/todo-api/workflows/CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/lbovolini/todo-api/badge.svg?branch=main)](https://coveralls.io/github/lbovolini/todo-api?branch=main) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nTodo list API \n\n##### Tecnologias\n\n- Docker\n- PHP 8\n- Apache\n- Codeigniter 4\n- MySQL\n- PHPUnit\n\n##### Requisitos\n\n- Docker instalado\n\n##### Restrições\n\n- Suporta somente requisições e respostas do tipo application/json\n\n##### Arquivo de configuração de ambiente de desenvolvimento\n\n- Crie um arquivo chamado **.env** na pasta raiz da aplicação com o seguinte conteúdo:\n\n  ```bash\n  #--------------------------------------------------------------------\n  # ENVIRONMENT\n  #--------------------------------------------------------------------\n  \n  CI_ENVIRONMENT = development\n  \n  #--------------------------------------------------------------------\n  # DATABASE\n  #--------------------------------------------------------------------\n  \n  database.default.hostname = todo_api_mariadb_service\n  database.default.database = todo\n  database.default.username = dev\n  database.default.password = dev\n  database.default.port = 3306\n  database.default.DBDriver = MySQLi\n  ```\n\n##### Iniciando a aplicação\n\n- Build\n\n  ```bash \n  sh build.sh\n  ```\n\n- Executar\n\n  ```bash \n  sh run-prod.sh\n  ```\n\n- Endereço\n\n  ``` http\n  http://localhost:8080\n  ```\n\n\n##### Banco de dados\n\n- Criar\n\n  ```bash\n  docker-compose exec todo_api_mariadb_service mysql -udev -pdev  -e \"CREATE DATABASE IF NOT EXISTS todo\";\n  ```\n\n- Tabelas\n\n  ```bash\n  docker-compose exec -w /var/www/todo todo_api_php_service php spark migrate\n  ```\n\n- Popular\n\n  ```bash\n  docker-compose exec -w /var/www/todo todo_api_php_service php spark db:seed AllSeeder\n  ```\n\n##### Executar Testes\n\n- Unit\n\n  ```bash\n  docker-compose exec -w /var/www/todo todo_api_php_service vendor/bin/phpunit \n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbovolini%2Ftodo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbovolini%2Ftodo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbovolini%2Ftodo-api/lists"}