- API to transfer money between accounts
- Run
./gradlew build
to compile, run tests and builds a jar file atbuild/libs/transfers.jar
- Run
./gradlew run
to run the application, it should be available at localhost:8080
- Running API tests needs the server to be running in the background, run the app at port 8080
- Run the script './runEnd2EndTests.sh'
- It builds the app
- Runs the app
- Runs the end2endTest
- Kills the app
- If the app is already running in the background, run
./gradlew end2endTest
to run all api tests
- Run
./gradlew clean build
to build the jar atbuild/libs/transfers.jar
- Run
java -jar build/libs/transfers.jar
to run the app at port 8080 - Use env variable
APP_PORT
to specify the portAPP_PORT=8081 java -jar build/libs/transfers.jar
runs the app at port 8081
- KTor as the REST framework, provides a stand alone server
- Ebean for ORM
- App is configured to run on H2 in memory database, this can be configured in the application.yml.