Git Product home page Git Product logo

danicristante / theddduniverse-workshop-refactor-to-hexagonal-architecture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from faparicior/theddduniverse-workshop-refactor-to-hexagonal-architecture

0.0 0.0 0.0 2.36 MB

The DDD universe workshop. Refactor to hexagonal architecture

License: GNU General Public License v3.0

JavaScript 0.51% PHP 35.37% Kotlin 29.25% TypeScript 24.47% Makefile 7.33% Dockerfile 3.07%

theddduniverse-workshop-refactor-to-hexagonal-architecture's Introduction

es

Learn DDD Step by Step, Using "The DDD Universe" Cards

In this series of workshops, we will be working on a very basic and plain code. We will face small challenges to transform it into a structure more in line with the current DDD standards.

Scenario

We are a startup that wants to bring back the simplicity of posting ads, imitating how it was done in the past. Previously, posters were glued on the streets or on bulletin boards advertising things. Our startup wants to revive that idea but in a digital format. Now, there are digital panels in civic centers, and we have an agreement to publish on them.

We start the proof of concept with a civic center near our offices.

Proof of Concept Functionality

  • Each user can publish as many ads as they want.
  • As it is a proof of concept, there is no user management or ad supervision system as such.
  • To avoid unwanted ads, the civic center staff is responsible for creating and publishing the ads in the system.
  • Each ad has a password that allows modifying its content or deleting it. In this case, we decided to use the civic center's ID number as the password for the advertiser.
  • When the ad is published, the advertiser receives an identifier to reference the ad if they want to modify or remove it in the future. But the only one who can do it is still the person responsible for the civic center.

Problem

Our code is an MVP, and it seems like we are starting to get good feedback. The civic center is sending us new ideas that we will likely have to implement, so we have decided to tidy up the code before we become overwhelmed with success when scaling the idea.

Towards a Solution

We have been told that by using Hexagonal Architecture with DDD, we can mitigate many problems and it will help us scale our product technically, giving us agility (or so we hope).

We Have an Ally: End-to-End Tests in Our API

Luckily, we have tests that verify the final result of our API, so we can refactor our code calmly.

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.