Giter Site home page Giter Site logo

django-ddd's Introduction

Django-DDD

Apply Domain-driven Design to Django without Django Rest Framework. This could be an overkill for using Django, but it's going to be an interesting experiment.

Requirements

  • django
  • django-ninja

Points to Note

  • Most project hierarchies are similar to python-ddd project.
  • The whole project is not dependent on the database using the imperative mapping and repository pattern.
  • The built-in features(Admin, ORM, etc.) of Django can be used as they are.

Project Structure

src
├── shared
│   ├── domain
│   └── infra
│       ├── django
│       └── repository
│           ├── mapper
│           └── rdb
├── todo
│   ├── application
│   │   └── use_case
│   │       ├── query
│   │       └── command
│   ├── domain
│   │   ├── entity
│   │   └── exception
│   ├── infra
│   │   └── database
│   │       ├── migrations
│   │       ├── models
│   │       └── repository
│   │           ├── mapper
│   │           └── rdb
│   └── presentation
│       └── rest
│            ├── api
│            ├── containers
│            ├── request
│            └── response
├── user
└── tests

Opinion

DRF has the advantage of being able to create the web applications quickly, but it is inherently too dependent on the database. I want to take advantage of Django's built-in features like Admin, ORM, etc. But I have sometimes suffered from DRF because of its inflexible design.

I found Django-Ninja instead, and it has everything I need.

But I still think DRF is a very good framework, and I highly value DRF's contribution to the Python web community.

django-ddd's People

Contributors

qu3vipon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.