{"id":15747431,"url":"https://github.com/iamnotstatic/pangaea-backend-test","last_synced_at":"2025-03-31T06:27:32.040Z","repository":{"id":110450668,"uuid":"328360508","full_name":"iamnotstatic/pangaea-backend-test","owner":"iamnotstatic","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-12T01:19:23.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T10:53:16.891Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamnotstatic.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":"2021-01-10T10:52:19.000Z","updated_at":"2021-03-12T13:01:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfc7f9d4-2191-41f4-929c-e6fa1519508e","html_url":"https://github.com/iamnotstatic/pangaea-backend-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnotstatic%2Fpangaea-backend-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnotstatic%2Fpangaea-backend-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnotstatic%2Fpangaea-backend-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnotstatic%2Fpangaea-backend-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamnotstatic","download_url":"https://codeload.github.com/iamnotstatic/pangaea-backend-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246426555,"owners_count":20775394,"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-10-04T05:20:20.292Z","updated_at":"2025-03-31T06:27:32.014Z","avatar_url":"https://github.com/iamnotstatic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pangaea Backend Takehome\n\n\nThis API uses `POST` request to communicate and HTTP [response codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) to indenticate status and errors. All responses come in standard JSON. All requests must be valid JSON.\n\n## Packages Used\n\nRedis https://www.npmjs.com/package/redis\n\nExpress https://www.npmjs.com/package/express\n\nAxios https://www.npmjs.com/package/axios\n\n\n## How to run the servers\n\n### Windows OS\n```\n./start-server.sh \n```\n\n\n### Mac OS\n```\nsh start-server.sh\n```\n\n\n## Publish a topic\nRun the below command on your terminal\n```terminal\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"message\": \"hello\"}' http://localhost:8000/publish/topic1\n```\n\n\n## Subscribe to a topic\nRun the below command on your terminal\n```terminal\ncurl -X POST -H \"Content-Type: application/json\" -d '{ \"url\": \"http://localhost:9000/test1\"}' http://localhost:8000/subscribe/topic1\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamnotstatic%2Fpangaea-backend-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamnotstatic%2Fpangaea-backend-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamnotstatic%2Fpangaea-backend-test/lists"}