To start developing with Ontrack, follow these instructions.
You need:
- a JDK 11
- Docker running
Get a clean working copy of the Ontrack GitHub repository:
git clone [email protected]:nemerosa/ontrack.git
cd ontrack
Generate the UI code in development mode:
./gradlew :ontrack-web:dev
Start the middleware needed by Ontrack:
./gradlew devStart
This starts:
- a Postgres database
- an ElasticSearch single-node instance
- a RabbitMQ server
./gradlew :ontrack-ui:bootRun
This starts Ontrack on http://localhost:8080.
The default credentials are:
- username:
admin
- password:
admin
- main class:
net.nemerosa.ontrack.boot.Application
- Spring profile to activate:
dev
When developing UI components, you can activate an automated refresh of the web resources.
For the "core" web resources under ontrack-web
, you can launch:
./gradlew watch
This will refresh the application web resources on any change in the web files. The dev
profile must be active.
For web resources in any of the extensions (in ontrack-extension-*
directories), just rebuild the application (in your IDE for example) and refresh the web page.