{"id":13510772,"url":"https://github.com/flackdl/recipe_api","last_synced_at":"2025-03-30T17:31:24.465Z","repository":{"id":45439665,"uuid":"257102892","full_name":"flackdl/recipe_api","owner":"flackdl","description":"Recipe Database \u0026 API","archived":false,"fork":false,"pushed_at":"2025-02-01T15:16:23.000Z","size":31674,"stargazers_count":14,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T16:24:49.916Z","etag":null,"topics":["django","django-rest-framework","full-text-search","postgresql","recipe-api","recipe-app","recipe-database","recipe-search","recipes","vue"],"latest_commit_sha":null,"homepage":"https://recipes.eerieemu.com/","language":"Python","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/flackdl.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":"2020-04-19T21:10:26.000Z","updated_at":"2025-02-01T15:16:27.000Z","dependencies_parsed_at":"2024-11-01T11:31:36.239Z","dependency_job_id":"40ca721a-9216-41ca-b1c7-bc0695eca71b","html_url":"https://github.com/flackdl/recipe_api","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/flackdl%2Frecipe_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flackdl%2Frecipe_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flackdl%2Frecipe_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flackdl%2Frecipe_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flackdl","download_url":"https://codeload.github.com/flackdl/recipe_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246355383,"owners_count":20763990,"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":["django","django-rest-framework","full-text-search","postgresql","recipe-api","recipe-app","recipe-database","recipe-search","recipes","vue"],"created_at":"2024-08-01T02:01:53.551Z","updated_at":"2025-03-30T17:31:24.460Z","avatar_url":"https://github.com/flackdl.png","language":"Python","funding_links":[],"categories":["Python","vue"],"sub_categories":[],"readme":"# Recipe API\n\nThis is an open source recipe database and api.\n\n### Overview\n\n- The recipes are stored in a postgres database with [full-text search](https://www.postgresql.org/docs/9.5/textsearch.html) enabled\n- The REST API powers the single-page-application front-end\n- The seed data was *collected* from the NYT Cooking service\n\n### Technology\n\n- python 3\n- django 3\n- django rest framework\n- vue 2\n- postgres\n\n### Screenshots\n\n#### Search\n![](static/screenshots/search.png)\n#### Result\n![](static/screenshots/result.png)\n\n### Development\n\nStart postgres:\n\n    docker-compose up -d postgres\n    \nInstall python dependencies:\n\n    pip install -r requirements.txt\n    \nCreate database and tables:\n\n    python manage.py migrate    \n\nCreate cache tables:\n\n    python manage.py createcachetable \n    \nCreate superuser for admin:\n\n    python manage.py createsuperuser\n    \nScrape recipes:\n\n    python manage.py scrape --urls --recipes --images --ingest\n        \nRun web server:    \n    \n    DEBUG=1 python manage.py runserver\n    \nURL: http://localhost:8000\n\n\n### Deployment\n\n*Clone repo first.*\n\nBring up everything:\n\n    docker-compose up -d\n\nDeploy front-end updates:\n\n    git pull\n    docker-compose up --force-recreate -d recipes\n\nDeploy front and back-end:\n\n    git pull\n    docker-compose up --build --force-recreate -d recipes\n\nForce scrape:\n\n    docker-compose exec recipes python manage.py scrape --urls --recipes --images --ingest --force\n\n### Helpers\n\nClear cache:\n\n    docker-compose exec recipes python manage.py shell\n    from django.core.cache import cache\n    cache.clear()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflackdl%2Frecipe_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflackdl%2Frecipe_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflackdl%2Frecipe_api/lists"}