{"id":25098596,"url":"https://github.com/g4eva-dev/backend-hng-task-0","last_synced_at":"2025-04-02T04:11:32.550Z","repository":{"id":274850673,"uuid":"924269346","full_name":"G4EVA-dev/backend-hng-task-0","owner":"G4EVA-dev","description":"Develop a public API that returns email address, current time and Github URL","archived":false,"fork":false,"pushed_at":"2025-01-29T20:21:45.000Z","size":726,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T18:52:04.606Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://backend-hng-task-0.onrender.com/","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/G4EVA-dev.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-01-29T17:54:48.000Z","updated_at":"2025-01-29T20:21:49.000Z","dependencies_parsed_at":"2025-01-29T19:31:28.951Z","dependency_job_id":null,"html_url":"https://github.com/G4EVA-dev/backend-hng-task-0","commit_stats":null,"previous_names":["g4eva-dev/backend-hng-task-0"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G4EVA-dev%2Fbackend-hng-task-0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G4EVA-dev%2Fbackend-hng-task-0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G4EVA-dev%2Fbackend-hng-task-0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G4EVA-dev%2Fbackend-hng-task-0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/G4EVA-dev","download_url":"https://codeload.github.com/G4EVA-dev/backend-hng-task-0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246752652,"owners_count":20827987,"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":"2025-02-07T18:33:13.601Z","updated_at":"2025-04-02T04:11:32.515Z","avatar_url":"https://github.com/G4EVA-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend HNG Task 0\n\n## Description\nThis is a simple backend API built with node.js. It provides an endpoint that returns essential details, including the developer's email, the current datetime, and a link to the project's GitHub repository. The API is lightweight and serves as an introduction to backend development.\nTask from HNG, Checkout [hng.backlink](https://hng.tech/hire/nodejs-developers) \n\n## Features\n- Returns developer email.\n- Provides the current datetime dynamically.\n- Includes a link to the GitHub repository.\n- CORS enabled for cross-origin requests.\n\n## Tech Stack\n- **Node.js** - JavaScript runtime environment.\n- **Express.js** - Web framework for Node.js.\n- **CORS** - Middleware to handle cross-origin resource sharing.\n\n## Setup Instructions\n### Prerequisites\nEnsure you have the following installed on your machine:\n- [Node.js](https://nodejs.org/) (LTS recommended)\n- npm (comes with Node.js)\n\n### Installation \u0026 Running Locally\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/G4EVA-dev/backend-hng-task-0.git\n   ```\n2. Navigate into the project directory:\n   ```sh\n   cd backend-hng-task-0\n   ```\n3. Install dependencies:\n   ```sh\n   npm install\n   ```\n4. Start the server:\n   ```sh\n   node index.js\n   ```\n5. The API will be available at:\n   ```\n   http://localhost:3000/\n   ```\n\n## API Documentation\n### Endpoint: GET /\n#### URL:\n```\nhttps://backend-hng-task-0.onrender.com\n```\n\n#### Response Format:\n- **200 OK**\n- JSON response with the following structure:\n  ```json\n  {\n    \"email\": \"tanzeglenn@gmail.com\",\n    \"current_datetime\": \"2025-01-01T12:00:00.000Z\",\n    \"github_url\": \"https://github.com/G4EVA-dev/backend-hng-task-0\"\n  }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg4eva-dev%2Fbackend-hng-task-0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg4eva-dev%2Fbackend-hng-task-0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg4eva-dev%2Fbackend-hng-task-0/lists"}