We only use Visual Studio Code (>= 1.76.0) as our IDE. Click here to install it if you don't already have it.
Since our process will have a service task, and we want to benefit from the technology neutrality offered by the Miranum Connect Library, we can use two GitHub repository templates to initiate the new project.
To do so, navigate to the GitHub Repository with the Template and click on Use this template and follow the instructions. Or use the command line:
gh repo create --template <repository> --private
Now all you need to do is clone your new repository with git clone <your-repository>
.
In this showcase, we will use the Hexagonal Architecture Template.
Note: If you'd like to find out more about Hexagonal Architecture and how it can benefit you, click here.
After initiating the project, we have to set up our IDE. As mentioned above, we will use VS Code. To get VS Code ready for development, we need to install some plugins:
- For developing with Java:
- For developing our process and its artifacts
The template comes with a Maven script (mvnw / mvnw.cmd).
This will not work out of the box in VS Code.
We have to enable the Maven Wrapper first.
To do that open the Terminal (View > Terminal
) and enter the following command:
mvn wrapper:wrapper
You will probably want to rename the modules, packages, and Java files that come with the templates you have used. Also make sure to rename the artifactID, name and modules inside the pom.xml.
Depending on your project, you may want to remove dependencies and classes that are not in use. For instance, in this showcase, we only use Miranum-Workers. That's why we can remove the dependencies to Miranum-Message and Miranum-Process in the respective pom.xml and some unused packages and Java files.
Having set up the project and the IDE, the next step is to create a Worker
.