{"id":20003212,"url":"https://github.com/mbrsagor/backend-drf","last_synced_at":"2025-10-12T04:44:50.000Z","repository":{"id":37984425,"uuid":"281081114","full_name":"mbrsagor/backend-drf","owner":"mbrsagor","description":"Here is this project for Django, Docker, Celery  Restful API services. How to write code well structured \u0026 nicely develop Django restful APIs.","archived":false,"fork":false,"pushed_at":"2025-09-12T01:49:28.000Z","size":12778,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T03:59:09.485Z","etag":null,"topics":["docker","drf","rest-api","rest-framework","rest-services","restful-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mbrsagor.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-20T10:04:44.000Z","updated_at":"2025-09-12T01:49:32.000Z","dependencies_parsed_at":"2023-10-03T16:49:09.975Z","dependency_job_id":"ca639480-5c5e-403a-b18b-59df01efe744","html_url":"https://github.com/mbrsagor/backend-drf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbrsagor/backend-drf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbackend-drf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbackend-drf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbackend-drf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbackend-drf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbrsagor","download_url":"https://codeload.github.com/mbrsagor/backend-drf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbackend-drf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010286,"owners_count":26084720,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":["docker","drf","rest-api","rest-framework","rest-services","restful-api"],"created_at":"2024-11-13T05:24:39.289Z","updated_at":"2025-10-12T04:44:49.995Z","avatar_url":"https://github.com/mbrsagor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DRF Backend API\n\u003e Django Rest framework backend API server, which has to implement Celery and Docker.\n\n### Setup\n\nThe following steps will walk you through installation on a Mac. Linux should be similar.\nIt's also possible to develop on a Windows machine, but I have not documented the steps.\nIf you've developed Django apps on Windows, you should have little problem getting\nup and running.\n\n#### Dependencies\n###### Prerequisites\n\n- Python 3.8.9 \n- PostgreSQL 13.2\n- Django 3.2\n- Docker\n\nCreate a virtualenv in your system, then follow the comments:\n```` virtualenv venv --python=python3.8 ````\n\nIf you successfully create the virtualenv, then activate:\n```source venv/bin/activate```\n\n\u003e Then create `.env` file and paste code from the `.env-sample` file and update valid information.\n\nAfter that, you may run the `requirements.txt` file following the command:\n```bash\npip install -r requirements.txt\n./manage.py migrate\n./manage.py runserver\n```\n\n##### If you run the project Docker, please follow the instructions in this self-learning guide.\n```base\ndocker-compose run drfbackend\ndocker-compose build\ndocker-compose up\n```\n\n## Table of contents:\n- Well-organized `CRUD` operations\n- Custom user model\n   - User Account\n   - User Login\n   - User Registration\n   - User Account by email\n   - User Reset Password\n   - User Reset Password\n - JET authentication system\n - Token-based authentication system\n - SMTP email sending\n\nThere are two branches here.\n```\ngit branch\n```\n* Master\n\n\n\u003e if you want to fix any kind of database migrations, you should follow these instructions. \n\n\u003e\u003e Open your terminal:\n```bash\npsql -U postgres\n```\nThen,\n```psql\n\\c my-db;\nALTER TABLE blog_post ADD COLUMN created_at with time zone DEFAULT now();\n```\n\n\u003e Docker:\n```bash\ndocker exec -it postgres_db psql -U postgres\n\\c db_name;\nALTER TABLE catalogue_submission ADD COLUMN status INTEGER DEFAULT 1;\nALTER TABLE catalogue_submission RENAME COLUMN old_field_name TO new_field_name;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrsagor%2Fbackend-drf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbrsagor%2Fbackend-drf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrsagor%2Fbackend-drf/lists"}