Git Product home page Git Product logo

cargo-clean's Introduction

Cargo tracking with Clean DDD

The idea behind this project is to build something similar to DDDSample. But using slightly different approach. I'll try to use ideas and principles behind:

  • Hexagonal architecture
  • Clean architecture
  • Use case driven development

Here is an article on Medium which will comment on the interesting points and decisions behind this implementation.

Copyright notice

This application is based heavily on the original DDDSample application by Citerus AB and Domain Language.

The original work is distributed under the MIT licence. I've included the original licence with this project.

Wherever possible, I'll try to mention the original code which was consulted for any specific implementation point.

How to run

This application is a standard Spring Boot application. There is also a Docker compose file with a Postgres database, which should be started prior to the execution of the application. You may need to start the database for some of the integration tests as well.

Exploring DDDSample DB

To be able to explore the relational model used by DDDSample, we can add an embedded web server to the original application. There is an example configuration available here: HsqlDbServerConfig.java.

To launch the server, you need hsqldb-2.4.0.jar (available from Maven central):

java -cp ~/.m2/repository/org/hsqldb/hsqldb/2.4.0/hsqldb-2.4.0.jar org.hsqldb.util.DatabaseManagerSwing

This should start the UI of the DB viewer. The type of connection to use is "HSQL Database Engine WebServer" and JDBC URL to use is jdbc:hsqldb:hsql://localhost/dddsample.

cargo-clean's People

Contributors

gushakov 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.