{"id":13625722,"url":"https://github.com/phalt/django-api-domains","last_synced_at":"2025-04-04T06:09:50.837Z","repository":{"id":41371396,"uuid":"164852158","full_name":"phalt/django-api-domains","owner":"phalt","description":"A pragmatic styleguide for Django API Projects","archived":false,"fork":false,"pushed_at":"2023-11-13T21:28:31.000Z","size":616,"stargazers_count":722,"open_issues_count":16,"forks_count":61,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-29T12:06:02.025Z","etag":null,"topics":["api","django","django-rest-framework","domains","graphene-django","graphql","guide","rest","style","styleguide"],"latest_commit_sha":null,"homepage":"https://phalt.github.io/django-api-domains/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phalt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-01-09T11:41:16.000Z","updated_at":"2025-03-07T23:29:14.000Z","dependencies_parsed_at":"2024-01-14T07:19:41.790Z","dependency_job_id":null,"html_url":"https://github.com/phalt/django-api-domains","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fdjango-api-domains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fdjango-api-domains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fdjango-api-domains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fdjango-api-domains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phalt","download_url":"https://codeload.github.com/phalt/django-api-domains/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128753,"owners_count":20888235,"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":["api","django","django-rest-framework","domains","graphene-django","graphql","guide","rest","style","styleguide"],"created_at":"2024-08-01T21:02:00.340Z","updated_at":"2025-04-04T06:09:50.814Z","avatar_url":"https://github.com/phalt.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"⚠️ [Currently stable and unlikely to change much, provide feedback here](https://github.com/phalt/django-api-domains/issues/31) ⚠️\n\n### Check out my new project for OpenAPI Clients: [Clientele](https://github.com/phalt/clientele)\n\n![logo.png](diagrams/dads_logo.png)\n\n# Django API Domains\n_Style guides for the API age_\n\n| Version                                                                 | Author(s)                                 | Date       |\n| ----------------------------------------------------------------------- |-------------------------------------------|------------|\n| [1.2.1](https://github.com/phalt/django-api-domains/releases/tag/1.2.1) | Paul Hallett  paulandrewhallett@gmail.com | 25-09-2019 |\n| [1.2](https://github.com/phalt/django-api-domains/releases/tag/1.2)     | Paul Hallett  paulandrewhallett@gmail.com | 10-06-2019 |\n| [1.1](https://github.com/phalt/django-api-domains/releases/tag/1.1)     | Paul Hallett  paulandrewhallett@gmail.com | 09-04-2019 |\n| [1.0](https://github.com/phalt/django-api-domains/releases/tag/1.0)     | Paul Hallett  paulandrewhallett@gmail.com | 01-02-2019 |\n\n## Introduction\n\nThis styleguide combines [domain-driven design](https://en.wikipedia.org/wiki/Domain-driven_design) principles and Django's [apps](https://docs.djangoproject.com/en/dev/ref/applications/#module-django.apps) pattern to provide a **pragmatic** guide for developing scalable API services with the Django web framework.\n\nThis styleguide tries to tackle two big problems:\n\n1) Design philosophies and design patterns work in \"ideal\" situations, and most real life problems do not represent this ideal world. Therefore we need to develop a flexible pattern that can adjust to support different situations.\n2) The original design and documentation of Django is geared heavily towards server-side-rendered-view applications, yet most modern Django applications are built to serve APIs for a separate frontend application. Therefore, Django's patterns are outdated for today's trends.\n\nIn order to overcome these problems, this styleguide tries to achieve the following five goals:\n\n1) Treat Django's `apps` more like software `domains`.\n2) Extend Django's `apps` implementation to support strong [bounded context](https://www.martinfowler.com/bliki/BoundedContext.html) patterns between `domains`.\n3) Enable separation of domains to happen when it makes sense for **increased development velocity**, not just for **business value**.\n4) Design a styleguide that reduces the effort involved in extracting the code for large domains into separate application servers.\n5) Make sure the styleguide compliments API-based applications.\n\n# Read the styleguide\n\nThe styleguide is now published as a readable documentation site. You can view it at [https://phalt.github.io/django-api-domains/](https://phalt.github.io/django-api-domains/) or view the [docs](docs/) folder directly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalt%2Fdjango-api-domains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphalt%2Fdjango-api-domains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalt%2Fdjango-api-domains/lists"}