-
Notifications
You must be signed in to change notification settings - Fork 292
Prepare environment to develop (IntelliJ Community)
Radosław Jajko edited this page Aug 19, 2021
·
3 revisions
This tutorial was based on the Intellij Community Edition version 2021.2.
Requirements:
- MySQL server installed
- Tomcat server installed
- NodeJS installed
- Git installed
Installation of each of that components was described in the Getting Started section on our Wiki.
(Gradle and Java JDK will be provided by Intellij)
- Download JetBrains Intellij Community Version from web.
- Install (or extract) the downloaded archive and run the application.
- On welcome screen select "Create New Project" and select "Get from VCS".
- Choose repository URL and use Git Version Control. Paste the URL of the Scada-LTS project and click "Clone" button.
https://github.com/SCADA-LTS/Scada-LTS.git
- *If there is a privilege dialog, click "Trust this project" button to load the gradle configuration.
- Gradle is loading the dependencies and preparing project for development. (It may take a while)
- Use Gradle extension to navigate within available tasks.
UsebuildRun
to build the Java and Frontend projects and to run the tomcat server.
You have to start Tomcat server in debug mode. Use for that runDebug
or buildRunDebug
Tasks. You can run it also manually just to
run $CATALINA_HOME/bin/catalina.sh jpda run
.
Then you have to attach to that process. So for that we need to create a new Run/Debug configuration. Click on the "Edit Configurations" button (green hammer icon) and click "add Remote JVM Debug".
Set the name for that task and make sure that is connection to the tomcat instance on port: 8000
. Apply and save.