{"id":18743889,"url":"https://github.com/devmarkson/hng-stage1","last_synced_at":"2025-11-22T00:30:12.897Z","repository":{"id":193770628,"uuid":"689451872","full_name":"DevMarkson/HNG-Stage1","owner":"DevMarkson","description":"This Node.js project creates an API endpoint that takes two GET request query parameters, slack_name and track, and returns specific information in JSON format. The information includes the Slack name, current day of the week, current UTC time (within a +/-2 minute window), track, GitHub file URL, GitHub repo URL, and a status code of 200.","archived":false,"fork":false,"pushed_at":"2023-09-09T21:56:38.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T19:46:53.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hng-stage1-opfg.onrender.com/api?slack_name=Favour_Markson\u0026track=backend","language":"JavaScript","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/DevMarkson.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":"2023-09-09T21:11:46.000Z","updated_at":"2023-09-09T22:01:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ab42a27-8877-4359-a4c7-2ae983d52566","html_url":"https://github.com/DevMarkson/HNG-Stage1","commit_stats":null,"previous_names":["markson17/hng-stage1","devmarkson/hng-stage1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FHNG-Stage1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FHNG-Stage1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FHNG-Stage1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FHNG-Stage1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevMarkson","download_url":"https://codeload.github.com/DevMarkson/HNG-Stage1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627300,"owners_count":19670844,"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":[],"created_at":"2024-11-07T16:12:57.714Z","updated_at":"2025-11-22T00:30:12.834Z","avatar_url":"https://github.com/DevMarkson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HNG STAGE 1 TASK\n\n## Description\nThis Node.js project creates an API endpoint that takes two GET request query parameters, `slack_name` and `track`, and returns specific information in JSON format. The information includes the Slack name, current day of the week, current UTC time (within a +/-2 minute window), track, GitHub file URL, GitHub repo URL, and a status code of 200.\n\n## Getting Started\n\n### Prerequisites\n- Node.js installed on your machine.\n\n### Installation\n1. Clone the repository to your local machine.\n   ```\n   git clone https://github.com/Markson17/HNG-Stage1.git\n   cd HNG-Stage1\n   ```\n\n2. Install the project dependencies.\n   ```\n   npm install\n   ```\n\n### Usage\n\n1. Start the Node.js application.\n   ```\n   node app.js\n   ```\n\n2. Access the API endpoint using a web browser or an API testing tool like Postman:\n\n   Example API endpoint:\n   ```\n   http://localhost:3000/api?slack_name=example_name\u0026track=backend\n   ```\n\n   Replace `example_name` and `backend` with your desired values for `slack_name` and `track`.\n\n3. The API will respond with a JSON object containing the requested information in the specified format.\n\nExample Response:\n```json\n{\n  \"slack_name\": \"example_name\",\n  \"current_day\": \"Monday\",\n  \"utc_time\": \"2023-08-21T15:04:05Z\",\n  \"track\": \"backend\",\n  \"github_file_url\": \"https://github.com/username/repo/blob/main/file_name.ext\",\n  \"github_repo_url\": \"https://github.com/username/repo\",\n  \"status_code\": 200\n}\n```\n\n### Dependencies\n- Express.js: A fast, unopinionated, minimalist web framework for Node.js.\n- Moment.js: A library for parsing, formatting, and manipulating dates and times.\n- Axios: A promise-based HTTP client for making requests to external resources (used for fetching GitHub URLs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmarkson%2Fhng-stage1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmarkson%2Fhng-stage1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmarkson%2Fhng-stage1/lists"}