Web Application to track your expenses
-
From your IDE:
- Locate the main class Application.class in
src/main/java/com/example/application
- Right-click on the class and select "Run".
- Locate the main class Application.class in
-
Using Maven:
cd /path/to/your/project
mvn spring-boot:run
Once the application is running, you can access it in a web browser or via API endpoints. By default, Spring Boot applications run on http://localhost:8080.
The following table shows how to load various resources and where the resource files should be placed in a project.
File type | Import | File location |
---|---|---|
CSS files | @CssImport("./my-styles/styles.css") |
/frontend/my-styles/styles.css |
JavaScript, TypeScript | @JsModule("./my-script.js") |
/frontend/my-script.js |
Static files, such as images and icons | new Image("img/flower.jpg", "A flower") |
/src/main/resources/META-INF/resources/img/flower.jpg |
- Vaadin
14.x
- Spring Boot
3.x
- Java 11
mvn clean install
- build everythingcd demo-service
- move to the vaadin applicationmvn spring-boot:run
- start vaadin application
mvn -Pproduction clean install
- build everything including vaadin as a production appcp demo-service/target/demo-service-1.0.0-SNAPSHOT-exec.jar ${YOUR_DESTINATION}
- copy the executable jar./demo-service-1.0.0-SNAPSHOT-exec.jar
- execute it