-
Notifications
You must be signed in to change notification settings - Fork 19
Running the Budgeteer
- Clone the repository
git clone https://github.com/adessoAG/budgeteer
- Execute the Gradle task to run the Budgeteer
./gradlew bootRun
- Go to
localhost:8080
in your browser
You can execute the tests simply by running the appropriate Gradle task
./gradlew test
- Clone the repository
git clone https://github.com/adessoAG/budgeteer
-
You can simply import the Budgeteer as a Gradle project. Make sure to select
Use default gradle wrapper
instead of a local distribution. Also check theDelegate IDE build/run actions to gradle
checkbox inFile -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Runner
. -
Download the Lombok plugin for IntelliJ
File -> Settings -> Plugins -> Browse repositories -> Search for Lombok -> Install
- Enable Annotation processing
File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors -> Enable annotation processing
- In the Gradle tab, select:
Budgeteer -> application -> bootRun
- Go to
localhost:8080
in your browser
You can run all tests by using the Gradle task at budgeteer-> verification -> test
.
If you want to run the tests from the Project View or run individual tests, you have to tell IntelliJ to use the Gradle runner:
File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Runner -> select the Gradle Test Runner
- Clone the repository
git clone https://github.com/adessoAG/budgeteer
2.Import the Budgeteer as a gradle project.
3.Get Lombok - https://projectlombok.org/download - It will automatically find your Eclipse installation and install itself.
4.Tell gradle to use JDK instead of JRE - Right click on the gradle install task and press Open Gradle Run Configuartions
-> set Java Home to your JDK installation.
5.Run the application -> bootRun
task.
- Go to
localhost:8080
in your browser
You can run the tests using the gradle test task.
-
Open the
build.gradle
file in the budgeteer-web-interface module and find thebootRun
block. -
Comment out the line
'-Dspring.datasource.url=jdbc:hsqldb:mem:budgeteer'
-
Uncomment the line
'-Dspring.datasource.url=jdbc:hsqldb:hsql://localhost/budgeteer'
. -
Now, when running the budgeteer with
bootRun
it will use HSQLDB.
After downloading and extracting the latest version of HSQLDB, you will find that it contains a bin
folder.
Open the file runServer.bat
and replace the existing text with the following:
cd ..\data
@java -classpath ../lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:test --dbname.0 budgeteer
Now you can run HSQL from this file and the budgeteer as described above.