Generate Java code from draw.io UML class diagrams
This fork adds a Typescript generator, whoms syntax is slightly different and which can then be transpiled to javascript.
The work on getters and setters ahs been stripped in the TypeScript part.
# if pipenv is not installed :
pip install --user pipenv
# Install dependencies
python -m pipenv install
# Install missing deps & codecs
pip install BeautifulSoup4
pip install lxml
Run the example :
# Compiles the diagram to both Java an Typescript code
python3 main.py
The implementation is very minimal and not all UML Class Diagram syntax is parsed.
Meanwhile, basic class structures are greatly generated and this script provides a quick starting point for implementing a diagram.
Think semi-automatic.