andytaylor commented on code in PR #3: URL: https://github.com/apache/activemq-artemis-console-plugin/pull/3#discussion_r1574575303
########## README.md: ########## @@ -1 +1,61 @@ -# activemq-artemis-console-plugin +# Apache ActiveMQ Artemis Console Plugin + + +The [Apache ActiveMQ Artemis](https://activemq.apache.org/components/artemis/) Console Plugin is written using [Hawtio v4](https://github.com/hawtio/hawtio). +The plugin is written in TypeScript. Since a Hawtio plugin is based on React and [Webpack Module Federation](https://module-federation.github.io/), +this project uses Yarn v3 and [CRACO](https://craco.js.org/) as the build tools. + +The WAR file created by this project is consumed by ActiveMQ Artemis but can be developed and run standalone. + + +### Build + +The following command first builds the `activemq-artemis-console-plugin` frontend project and then compiles and packages +the main Java project together. + +```console +mvn clean install +``` + +Building the frontend project 'artemis-console-extension' can take time, so if you build it once and make no changes on the project afterwards, you +can speed up the whole build by skipping the frontend part next time. + +```console +mvn install -Dskip.yarn +``` + +### Test run + +You can quickly run and test the console by using `jetty-maven-plugin` configured in `pom.xml`. It launches an embedded +Jetty server and deploys the plugin WAR application. From the 'artemis-console-war' directory run: + +```console +mvn jetty:run -Dskip.yarn +``` + +You can access the Artemis console with the sample plugin at: <http://localhost:8080/console/> + +## Faster plugin development + +You could run `mvn install` or `mvn jetty:run` every time to incrementally develop the `activemq-artemis-console` +frontend project while checking its behaviour in the browser. But this is not suitable for running the fast development feedback cycle. Review Comment: it is still correct -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org