This is an simple example project featuring maven multi-module project architecture.
This module includes the ExtWebComponents project.
- Note: The
./sandbox-client/build
is the build folder. - Note: The
./sandbox-client/build
is copied to./sandbox-server/target/sandbox
on each compile.
This module includes the Java servlet container webapp.
- Note: The build is compiled to
./sandbox-server/target/sandbox
. This is the webapp folder.
Use IntelliJ IDEA Ultimate for the best debugging experience.
Note: You could use IntelliJ Community Edition, but you won't get full npm and Javascript feature integrations. Keep in mind you can run the server from a CE Jetty plugin and webpackdev from CLI.
Open the project from the root.
You'll have to download the Jetty Binaries, and stick them some where. So you can run the Jetty server.
The debugging will be covered using IntelliJ Ultimate Debugging. Although the same strategy could be done using terminal commands.
- IntelliJ Ultimate Jetty Plugin.
- IntelliJ Ultimate npm Plugin.
- Login and install client dependencies in the client module.
Start the client webpack compiler.
Launch Run webpackdev
in the IntelliJ launch menu.
Start the Jetty server.
Launch Run Server
in the IntelliJ launch menu.
The browser will be started. If it isn't navigate to http://localhost:8080/sandbox.
- Note: Be sure to open dev tools and disable caching!