Getting Started with ZenWave 360ΒΊ


We recommend using SDKMAN! to install ZenWave SDK requirements: Java 17+, Maven and JBang.

NOTE: Temurin (Eclipse) is a good option for Java JDK as it is high performance, enterprise-caliber and open-sourced licensed.

ZenWave SDK Installation

Use JBang to install an evergreen self updating CLI for the ZenWave SDK.

jbang alias add --fresh --force --name=zw release@zenwave360/zenwave-sdk

NOTE: You can install ZenWave versions from different channel: release for latest stable version, snapshots for development versions compatible with current releases or next for experimental versions. They can be installed side by side (using different --name=<alias>) or independently.

Install ZenWave Editor IntelliJ Plugin

Install ZenWave Editor IntelliJ Plugin from JetBrains Marketplace:

For rendering class diagrams in markdown preview, install PlantUML Integration plugin.

NOTE: ZenWave Editor uses jbang zw at plugin load time to fetch available plugins and configuration options to provide autocomplete funciontality. Make use jbang is part of your system PATH environment variable.

Spring-Boot base Project

ZenWave SDK only generates business logic code and tests. It is expected to work with any compatible Spring-Boot project. Default backend generator is based ona maven single module project.

We expect most companies and teams to have their own starter base project. If you don't have one you can create one from or clone one of the ZenWave 360 base projects from our GitHub playground repository.

ZenWave SDK generated code was tested with Spring-Boot 3.1.4, Hibernate 6.x, MongoDB 5 and Spring-Cloud xxx.

ZDL Modeling and Code Generation

Scroll left/right for a quick overview of how ZDL modeling looks like, with an example. And then follow the instructions below.

Create a new ZDL model or use one of ZDL examples as base:

  1. Create a new file with .zdl extension
  2. Model your Bounded Context adding some entities, services, inputs and events...
  3. Add ZenWave SDK Plugins to ZDL config section. You can use IntelliJ live templates provided for this task.
  4. Follow these steps to generate code and tests from your model:
    1. Generate API definitions from your model: OpenAPI and AsyncAPI v2/v3 are supported.
    2. Customize your API definitions. They are the source of truth for outbound/inbound communications.
    3. Configure API-First generators in pom.xml for OpenAPI and AsyncAPI.
    4. Generate your Core Backed code and tests. ZenWave SDK can generate CRUD implementation for your services.
    5. Customize generated code implementing non-CRUD service commands and customize generated tests.
    6. Implement Adapters code (web, event) connecting API-First generated code with your Core Backend. ZenWave SDK can generate Stub implementation for some adapters.
  5. Run your tests and start your application.

Generating a complete Spring-Boot Application with ZenWave SDK