{"id":38668459,"url":"https://github.com/openculinary/backend","last_synced_at":"2026-01-17T09:52:26.026Z","repository":{"id":38620621,"uuid":"267331114","full_name":"openculinary/backend","owner":"openculinary","description":"The RecipeRadar backend implements data persistence and modeling for the RecipeRadar service","archived":false,"fork":false,"pushed_at":"2025-05-08T13:22:58.000Z","size":2948,"stargazers_count":13,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T14:33:16.437Z","etag":null,"topics":["celery","flask","opensearch","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openculinary.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,"zenodo":null}},"created_at":"2020-05-27T13:46:53.000Z","updated_at":"2025-05-08T13:23:02.000Z","dependencies_parsed_at":"2024-03-28T20:02:47.543Z","dependency_job_id":"2f490c38-1e09-47c0-b80b-386537fee626","html_url":"https://github.com/openculinary/backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openculinary/backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openculinary%2Fbackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openculinary%2Fbackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openculinary%2Fbackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openculinary%2Fbackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openculinary","download_url":"https://codeload.github.com/openculinary/backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openculinary%2Fbackend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["celery","flask","opensearch","postgresql"],"created_at":"2026-01-17T09:52:23.277Z","updated_at":"2026-01-17T09:52:26.007Z","avatar_url":"https://github.com/openculinary.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RecipeRadar Backend\n\nThe RecipeRadar backend provides data persistence and modeling services.\n\nIt provides endpoints to support the following functionality:\n\n* Recipe crawling\n* Data export\n\nThe service is composed of two Kubernetes deployments:\n\n* `backend-deployment` - `gunicorn` web pods\n* `backend-worker-deployment` - `celery` task workers\n\n## Install dependencies\n\nMake sure to follow the RecipeRadar [infrastructure](https://codeberg.org/openculinary/infrastructure) setup to ensure all cluster dependencies are available in your environment.\n\n## Development\n\nTo install development tools and run linting and tests locally, execute the following commands:\n\n```sh\n$ make lint tests\n```\n\n## Local Deployment\n\nTo deploy the service to the local infrastructure environment, execute the following commands:\n\n```sh\n$ make\n$ make deploy\n```\n\n## Operations\n\n### Recipe index configuration\n\nFor the search engine to correctly index recipe data, an OpenSearch mapping needs to be configured for the `recipe` index.  This can be done using the `update-recipe-index.py` script:\n\n```sh\n# For an OpenSearch instance running on 'localhost' on the default port\n$ venv/bin/python scripts/update-recipe-index.py --hostname localhost --index recipes\n```\n\n### Pausing background workers\n\nSometimes -- for example, during schema upgrades or other changes which need careful co-ordination between the search engine, API, and background task workers, it can be useful to pause the workers temporarily.\n\nSince the workers are a Kubernetes `deployment`, a straightforward way to do this is to scale the deployment down to zero temporarily:\n\n```sh\n$ kubectl scale deployments/backend-worker-deployment --replicas 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenculinary%2Fbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenculinary%2Fbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenculinary%2Fbackend/lists"}