A demonstration of a simple Spring Boot project using Devbox for an isolated development environment.
This project is a demonstration of a simple Spring Boot application using Devbox to create an isolated development environment. The goal is to ensure that all dependencies and configurations are managed within the project, promoting consistency across different development setups.
3.3.3
22
The project includes the following dependencies:
Ensure that you have Devbox installed and configured. Devbox manages the dependencies and environment configurations.
git clone https://github.com/eth-library/devbox-spring-demo.git
cd devbox-spring-demo
devbox shell
mvn spring-boot:run
curl "http://localhost:8080/greeting?name=Devbox%20Tester"
Fork this repository
From the Code dropdown, select Create codespace on main
Once the codespace has loaded, run devbox run start
in the terminal to start the webserver.
devbox run start
When prompted, click Open in Browser.
[!TIP] If the popup is not visible, you can navigate to the Forwarded Ports tab, and open the Forwarded Address for port 8080.
To maintain an isolated environment, a custom maven.config
file is provided in the .mvn
directory. This configuration ensures that all Maven dependencies are stored locally within the project rather than in a global repository. This approach helps to keep the development environment fully isolated, avoiding any interference from global dependencies.