thingsboard icon indicating copy to clipboard operation
thingsboard copied to clipboard

[Question] How to start through IDEA

Open Smilewh888 opened this issue 2 years ago • 3 comments

Component

  • Installation

Description How can I start a project directly from the source code instead of Download and extract the package to execute install.bat --loadDemo. Environment

  • OS: windows
  • ThingsBoard: release-3.6

Smilewh888 avatar Dec 13 '23 09:12 Smilewh888

This doc

devaskim avatar Dec 14 '23 10:12 devaskim

So far I understand, that you want to run the project in dev mode. If this is the case, then follow the instructions.

  1. Clone the project: git clone https://github.com/thingsboard/thingsboard.git and checkout to release-3.6
  2. Open the thingsboard folder using intellij IDEA. It will some time to load the dependencies.
  3. You will see Maven icon at the top right corner of IDE. By clicking it will open the maven config.
  4. Now open the Thingsboard lifecycle and dbl click on install. Now it will configure everything for you to run the project.
  5. Make sure that you have Java 11, Angular 16 are installed in your device.
  6. Before running the Angular CLI Server, you have to run the ThingsboardServerApplication.
  7. If you have thingsboard instance running in your system, it will make every necessary port busy. So you also have to stop the thingsboard service before running the ThingsboardServerApplication.

fullstacknasir avatar Dec 28 '23 10:12 fullstacknasir

@0xNasir I followed your instructions on the IntelliJ idea, unfortunately, the Maven install was not completed it failed with this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.0:test (default-test) on project script-api: There are test failures.

mkumar8104 avatar Sep 05 '24 04:09 mkumar8104