Simple Bank Application can run on Docker easily. Please follow below commands on your terminal.
git clone https://github.com/sozgat/simplebanking.git
cd simplebanking
./gradlew build
docker-compose up --build
You can access Swagger Docs via http://localhost:8080/swagger-ui.html
If you want to test API via Postman, follow below instructions:
- Open your postman and click Import Button.
- Change tab to Link in Import Panel.
- Paste link (https://www.getpostman.com/collections/7833a663de4b0cf86c71) to URL field.
- Continue and Import. All is done :)
If you want to run test classes in your IDE, you have to remove below command in test field in build.gradle.
exclude '**/*'
If you want to run project on your IDE, please add these environment variables.
ARG | Description | Example |
---|---|---|
MYAPP_JDBC_USER | Database username | root |
MYAPP_JDBC_URL | Database hostname | jdbc:postgresql://localhost:5432/simplebanking |
MYAPP_JDBC_PASS | Database password | root |