{"id":30893256,"url":"https://github.com/open-dating/od-backend","last_synced_at":"2026-05-09T05:34:18.048Z","repository":{"id":38968152,"uuid":"240564143","full_name":"open-dating/od-backend","owner":"open-dating","description":"Backend for app","archived":false,"fork":false,"pushed_at":"2023-01-12T01:45:04.000Z","size":5100,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T20:07:03.661Z","etag":null,"topics":["dating","nestjs","postgresql","rest-api","typeorm"],"latest_commit_sha":null,"homepage":"https://app.open-dating.org/api/v1/doc/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-dating.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}},"created_at":"2020-02-14T17:32:18.000Z","updated_at":"2023-11-29T16:46:29.000Z","dependencies_parsed_at":"2023-02-09T09:17:36.579Z","dependency_job_id":null,"html_url":"https://github.com/open-dating/od-backend","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/open-dating/od-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-dating%2Fod-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-dating%2Fod-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-dating%2Fod-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-dating%2Fod-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-dating","download_url":"https://codeload.github.com/open-dating/od-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-dating%2Fod-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["dating","nestjs","postgresql","rest-api","typeorm"],"created_at":"2025-09-08T20:06:57.171Z","updated_at":"2026-05-09T05:34:18.019Z","avatar_url":"https://github.com/open-dating.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## od-backend\n\n[![Docker](https://img.shields.io/docker/pulls/opendating/od-backend)](https://hub.docker.com/repository/docker/opendating/od-backend/tags)\n![License](https://img.shields.io/github/license/open-dating/od-backend)\n[![codecov](https://codecov.io/gh/open-dating/od-backend/branch/master/graph/badge.svg)](https://codecov.io/gh/open-dating/od-backend)\n[![DeepScan grade](https://deepscan.io/api/teams/2754/projects/9569/branches/126329/badge/grade.svg)](https://deepscan.io/dashboard#view=project\u0026tid=2754\u0026pid=9569\u0026bid=126329)\n![Github CI](https://github.com/open-dating/od-backend/workflows/Test,%20build,%20deploy/badge.svg)\n\nOpen Dating is open source project like Tinder and others similar service, with lot of differents.\n\nMore info on project site: https://open-dating.org/\n\nAvailable api endpoints: https://app.open-dating.org/api/v1/doc/\n\n### Development\nInstall deps:\n\n```bash\n# install docker and docker compose\n# docker - https://docs.docker.com/install/\n# docker compose - https://docs.docker.com/compose/install/\n# npm and nodejs - https://nodejs.org/en/\n```\n\nInit envs:\n\nCreate .env and copy all from .env.example\n\nRun:\n\n```bash\n# install deps\nnpm i\n\n# run docker with pg and dnn services\nnpm run docker:dev\n\n# run migration and after it run nest app\nnpm run start:migrate-n-dev\n```\n\nAutogenerate new migration if you change enityties:\n```bash\nnpm run typeorm:generate MigartionName\n```\n\nIf you need fcm push functional, get fsm file form google and save in root as fcm.json\n\n#### Seeding\nWhen you first run, you can view in console admin login/pass as:\n```\n[Admin] Created admin user: {\"email\":\"admin@localhost.loc\",\"pass\":\"BCKUPE\"}\n```\nYou can use what cred for login via swagger: http://localhost:4300/api/v1/doc/\nby auth/login method, after login get jwt.accessToken and autorize in swagger and now you can use all admin endpoints\nwhich include seeding and etc.\n\n\n### Test\nExecuted on localy instance\n```bash\nnpm run test\n```\n\nRun in testing suite(with all migrations and etc):\n```bash\n# start testing containers\nnpm run docker:test\n\n# run test\nnpm run docker:exec:test\n```\n\n### Production\nSet up values in .env as .env.example-prod and run\n```bash\ndocker volume create --name=od-postgres\n\ndocker-compose -f docker-compose.prod.yml up -d --build\n```\n\n## Roadmap\n* [x] connect to sentry\n* [x] calc dnn and distance is user profile\n* [ ] add donation emails\n* [x] edit more user profile fields\n* [ ] check for lang typos\n* [ ] add support more algo in users search\n* [ ] write more tests\n* [ ] add multilang support\n* [ ] run on prod without docker-compose and .env files\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-dating%2Fod-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-dating%2Fod-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-dating%2Fod-backend/lists"}