{"id":18387730,"url":"https://github.com/webobite/dating-app-api-backend","last_synced_at":"2025-04-12T02:47:33.925Z","repository":{"id":42805150,"uuid":"270703918","full_name":"webobite/Dating-App-API-Backend","owner":"webobite","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-22T16:54:11.000Z","size":764,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T00:28:59.433Z","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/webobite.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}},"created_at":"2020-06-08T14:40:39.000Z","updated_at":"2020-06-09T04:21:31.000Z","dependencies_parsed_at":"2023-01-30T14:16:27.040Z","dependency_job_id":null,"html_url":"https://github.com/webobite/Dating-App-API-Backend","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/webobite%2FDating-App-API-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webobite%2FDating-App-API-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webobite%2FDating-App-API-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webobite%2FDating-App-API-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webobite","download_url":"https://codeload.github.com/webobite/Dating-App-API-Backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248508668,"owners_count":21115852,"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-06T01:27:31.592Z","updated_at":"2025-04-12T02:47:33.888Z","avatar_url":"https://github.com/webobite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dating App API Backend\r\n\r\n## Table of Contents\r\n\r\n- [About](#about)\r\n- [Getting Started](#getting_started)\r\n- [Usage](#usage)\r\n- [Note](#note)\r\n\r\n## About \u003ca name = \"about\"\u003e\u003c/a\u003e\r\n\r\nCreate a basic dating app which should contain following features:-\r\n\r\n    Test users loading: You can load test users with 10 images in the database.\r\n    Sign up api : Basic email and password based registration\r\n    login api : Jwt based login with email and password\r\n        \r\n        Image like api : Whenever someone like other user image, a socket io notification will sent to other user but image of person who liked should not be visible to who is being liked\r\n        \r\n        Block api: When a user block another user then his/her image should not be shown while blocked user is scrolling random images\r\n\r\n## Getting Started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\r\n\r\ncreate a `.env` file and add following content\r\n\r\n```\r\n# .envNODE_ENV=development\r\nAPP_NAME=dattingAppAPI\r\njwtSecret=YOUR_SECRET_KEY\r\nPORT=3000 \r\n```\r\n\r\n### Prerequisites\r\n\r\nWhat things you need to install the software and how to install them.\r\n\r\n```\r\nNodeJs 12~\r\n```\r\n\r\n### Installing\r\n\r\nA step by step series of examples that tell you how to get a development env running.\r\n\r\nIn root directory run in terminal to install npm packages from `package.json`\r\n```\r\nnpm install\r\n```\r\n\r\n## Usage \u003ca name = \"usage\"\u003e\u003c/a\u003e\r\n\r\nuse postman to test the API with following URL path :\r\n\r\nto register the user : - \r\n```\r\nlocalhost:3000/register\r\n\r\nBody Parameter : \r\n{\r\n    \"email\" : \"your@email.com\",\r\n    \"password\" : \"passwordYouWantToSet\"\r\n}\r\n```\r\n\r\nto login the user : -\r\n```\r\nlocalhost:3000/login\r\n\r\n\r\nBody parameter : - \r\n{\r\n    \"email\" : \"your@email.com\",\r\n    \"password\" : \"passwordYouWantToSet\"\r\n}\r\nHeader : (in request url) // you can get the authorisation header value from register URL response.\r\n{\r\n    authorisation : \"dsankabdsnlhadsbdaslndasblndasvasdsavkabsasdbkjgasdkvbasdk\"\r\n}\r\n```\r\nto update image for specific user : -\r\n```\r\nlocalhost:3000/image/update\r\n\r\n{\r\n    \"email\" : \"your@email.com\",\r\n    \"imgUrl\" : \"www.image.url.com/image.png\"\r\n}\r\n```\r\nto block an user :-\r\n```\r\nlocalhost:3000/block/user\r\n\r\n\r\nBody parameter : - \r\n{\r\n\t\"email\" : \"test2@mail.com\",\r\n\t\"blockedUserEmail\" : \"test1@gmail.com\"\r\n}\r\n```\r\nto view all registered user profile :-\r\n```\r\nlocalhost:3000/scroll/all/user\r\n\r\n\r\nBody parameter : - \r\n{\r\n    userEmail : \"your@email.com\"\r\n}\r\n```\r\n\r\n## Note \u003ca name = \"note\"\u003e\u003c/a\u003e\r\n\r\n```\r\nScrolling user info is not done yet and I am getting some error on blocked User route too. Will be  updating both the route ASAP.\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebobite%2Fdating-app-api-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebobite%2Fdating-app-api-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebobite%2Fdating-app-api-backend/lists"}