GithubHelp home page GithubHelp logo

plantumldesignpatterns's Introduction

Plant UML Design Patterns

PlantUML code for some Design Patterns. The syntax can be looked up on PlantUML's class diagram documentation.

Example

Code Diagram
Abstract factory code Abstract factory diagram

Included patterns

Creational Structural Behavioral
Abstract factory Adapter Chain of Responsibility
Builder Bridge Command
Factory method Composite Interpreter
Prototype Decorator Iterator
Singleton Facade Mediator
  Flyweight Memento
  Proxy Observer
    State
    Strategy
    Template method
    Visitor

Running

If you do not intend to run locally, please have a look at the alternatives found in this overview.

Prerequisites

To run locally, the PlantUML jar (from PlantUML's download site) is needed. As described on the Getting started site, you will also need both Java and Graphviz installed on your machine.

Creating the diagrams

The easiest way is to just run the included python script (run.py). It checks for changes in the diagram files and only generates the new/changed ones. The PlantUML jar should be in the same directory.

python run.py

The generated diagrams are stored in the output folder.

To run PlantUML directly from the command line for one specific diagram, you can execute:

java -jar plantuml.jar diagram.txt

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • The pattern descriptions and overall class diagram arrangements are taken from a cheat sheet from Jason Mcdonalds blog

plantumldesignpatterns's People

Contributors

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