{"id":21000223,"url":"https://github.com/matdemn/http-assignment","last_synced_at":"2025-10-07T13:47:56.007Z","repository":{"id":237559442,"uuid":"794737108","full_name":"MatDemn/http-assignment","owner":"MatDemn","description":"One of the http assignments done by me","archived":false,"fork":false,"pushed_at":"2024-05-01T21:23:55.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T13:43:56.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MatDemn.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":"2024-05-01T21:02:29.000Z","updated_at":"2024-05-01T21:23:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a816591-ab77-4e77-8fd6-bfcceb9c8024","html_url":"https://github.com/MatDemn/http-assignment","commit_stats":null,"previous_names":["matdemn/http-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatDemn/http-assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatDemn%2Fhttp-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatDemn%2Fhttp-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatDemn%2Fhttp-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatDemn%2Fhttp-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatDemn","download_url":"https://codeload.github.com/MatDemn/http-assignment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatDemn%2Fhttp-assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278786693,"owners_count":26045588,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T08:09:49.600Z","updated_at":"2025-10-07T13:47:55.988Z","avatar_url":"https://github.com/MatDemn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zadanie rekrutacyjne\n_Mateusz Zając_\n\nKod źródłowy aplikacji napisany jest w języku TypeScript. Kod skompilowany do języka JavaScript znajdzie się w folderze \"dist\". Plikiem wejściowym programu jest \"index.js\".\n\n### 1. Zawartość repozytorium\n- Główna aplikacja (app) - kod realizujący funkcje załączone w mailu\n- Serwer tstowy (test_server) - serwer służący do testów zachowania aplikacji\n\n### 2. Instalacja\n\n**Wymagania:**\n\n- Node.js 21.7.1 (lub późniejsze)\n\n1. Uruchom terminal.\n2. Przejdź do folderu \"app\".\n3. Uruchom w terminalu:\n    \n```\n  npm install\n```\n\n4. Utwórz plik \".env\" w katalogu projektu i uzupełnij go:\n\n```\n  API_URL=https://your_url_to_fetch_data_from\n  API_CONTENT_TYPE=application/vnd.orangeott.v1+json\n  X=10\n  Y=5\n  PING_URL=your_url_to_ping\n  PING_PACKETS=4\n```\n\n**API_URL** - URL, z którego ma być pobierana odpowiedź API.\n**API_CONTENT** - Content-Type, który ma być akceptowany.\n**X** - Ilość zapytań, która ma być wysyłana do serwera.\n**Y** - Czas pomiędzy grupami zapytań.\n**PING_URL** - URL, który ma być używany do pingu.\n**PING_PACKETS** - Ilość pamietów ping wysyłanych do powyższego serwera.\n\n5. Zbuduj projekt:\n```\n  npm run build\n```\n\n6. Uruchom program:\n\n```\n  npm start\n```\n\n### 3. Pozostałe informacje:\n\n- Program wysyła X zapytań jedno po drugim i wyświetla ich wyniki. Potem wyświetlają się wyniki polecenia ping. Następnie jest pauza na Y sekund. Po tym czasie cykl powtarza się.\n\n- Logi wyświetlają się na konsoli, ale również zapisują się w pliku \"logs/log.txt\". Plik z logami ma ograniczenie na 10MB. Po przekroczeniu limitu jest rotowany.\n\n- Jeśli chcesz skorzystać z testowego serwera, ale z innym portem niż domyślny (7357), \nutwórz plik .env w folderze test_server i uzupełnij go:\n\n```\n  PORT=7357\n```\n\n- Serwer testowy jest tylko do sprawdzania zachowania aplikacji. Nie stanowi integralnej części projektu.\n\n- Użyte biblioteki można znaleźć w pliku package.json, w sekcji 'dependencies'.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatdemn%2Fhttp-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatdemn%2Fhttp-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatdemn%2Fhttp-assignment/lists"}