Example of Nx workspace with Spring Boot apps and libraries generated using the Nx plugin @nxrocks/nx-spring-boot.
- Docker Engine version 18.06.0 or newer
- Visual Studio Code version 1.68.1 or newer (including Compose V2)
Click on this badge to open the workspace in VS Code using our development container.
If you plan to contribute to this project, please create a fork and use its URL for cloning. For more information on contributing and/or our Forking Workflow approach, see CONTRIBUTING.md.
git clone --depth 1 <repo url>
Then open your fork repo inside our devcontainer.
Source dev-env.sh
. This step can be skipped when working in the devcontainer.
. ./dev-env.sh
Install Node.js packages (after source):
workspace-install
nx serve awesome-user-service
This command:
- builds the shared library
libs/shared/util
- installs the shared library so that it is visible to the user service
(
app/awesome-user-service
) - builds the user service
- serves the user service