{"id":25812387,"url":"https://github.com/codeekage/backend-microservice","last_synced_at":"2026-06-09T06:31:51.321Z","repository":{"id":98676944,"uuid":"131584122","full_name":"codeekage/backend-microservice","owner":"codeekage","description":"Dockerized version ","archived":false,"fork":false,"pushed_at":"2018-04-30T12:38:09.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T11:02:37.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeekage.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-30T10:44:51.000Z","updated_at":"2023-03-10T12:00:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c30b5349-74c5-4f69-bf93-431445733aa9","html_url":"https://github.com/codeekage/backend-microservice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeekage/backend-microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeekage%2Fbackend-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeekage%2Fbackend-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeekage%2Fbackend-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeekage%2Fbackend-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeekage","download_url":"https://codeload.github.com/codeekage/backend-microservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeekage%2Fbackend-microservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34095243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":"2025-02-28T01:53:46.756Z","updated_at":"2026-06-09T06:31:51.315Z","avatar_url":"https://github.com/codeekage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backend-microservice\nDockerized version\n\n## Getting Started\n\nSimple backend task for Hackerbay, before making any request please ensure you have PostMan installed. GET POSTMAN [HERE](https://www.getpostman.com/apps).\n\nNew to POSTMAN ? SEE [DOCS](https://www.getpostman.com/docs/v6/)\n\n### Table of contact\n\n* Login\n* Contact Patch\n* Thumbnail Generator\n\n### Login\nTo get started with the login service make a request to `localhost:4000/login` this is the public route from running docker.\n\nMake sure that the Request Body contians `username` and `password`. Should look this way\n```\n    {\n        \"username\" : \"Username\",\n        \"password\" : \"Password\"\n    }\n```\nThe request returns a `jwt token` that must be added to the Header to access Procted Routes. See Adding Bearer Token HERE\n\nAwesome! you just got your `jwt token` and you can proceed to procted routes like `/contacts` and `/thumbnail`.\n\n\n### Contacts\nNow you've gotten your `jwt token` and must have added it to the `Bearer \u003ctoken\u003e` Make a `GET` request to `localhost:4000/contacts`, Done? Awesome! this retrieves the pervious added contacts in a `json format`.\n\nWith the same header Authorization and Bearer \u003ctoken\u003e make a `POST` request to `localhost:4000/contacts` to add a new contact. Requet body should look.\n\n```\n{\n    \"name\" : \"Nazas\",\n    \"tel\" : \"555-555-555\",\n    \"email\" : \"interview@hackerbay.io\"\n}\n```\n\nAwesome! we've made fast progress so far. Making a `PUT` and `DELETE` request will require an addition params i.e `/:index` this matches the request to particular index of the array of the `JSON` Data. Your request should be `localhost:4000/contacts/1` this matched our request to the index of `1` if we make a `PUT` a request to that `URL` it updates that portion of the `JSON PATCH`. Try it yourself. This goes with the `DELETE` request to that `URL` or `route` it removes that `index` from the `JSON PATCH`.\n\n\n### Thumbnail Generator\nNB:- _node-thumbnail creates a queue of images and converts them asynchronously into thumbnails. node-thumbnail has no binary dependencies --- only javascript._\n\nBecause the route `localhost:4000/thumbnail` you will defintely need to add our \u003ctoken\u003e to the Authorization Header. Selecting an image should generate a thumbnail. Try doing this in your browser.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeekage%2Fbackend-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeekage%2Fbackend-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeekage%2Fbackend-microservice/lists"}