BankApp
Banking Application using Java 8, Sprint Boot, Spring Security and H2 Database
Install / Use
/learn @sbathina/BankAppREADME
Banking Application using Java8, Spring Boot, Spring Security and H2 DB
RESTful API to simulate simple banking operations.
Requirements
- CRUD operations for customers and accounts.
- Support deposits and withdrawals on accounts.
- Internal transfer support (i.e. a customer may transfer funds from one account to another).
Getting Started
- Checkout the project from GitHub
git clone https://github.com/sbathina/BankApp
- Enable Lombok support on your IDE
Refer to the following link for instructions:
https://projectlombok.org/setup/eclipse
- Open IDE of your choice and Import as existing maven project in your workspace
- Import existing maven project
- Run mvn clean install
- If using STS, Run As Spring Boot App
- Default port for the api is 8989
Prerequisites
- Java 8
- Spring Tool Suite 4 or similar IDE
- Maven - Dependency Management
Maven Dependencies
spring-boot-starter-actuator
spring-boot-starter-data-jpa
spring-boot-starter-security
spring-boot-starter-web
spring-boot-devtools
h2 - Inmemory database
lombok - to reduce boilerplate code
springfox-swagger2
springfox-swagger-ui
spring-boot-starter-test
spring-security-test
Swagger
Please find the Rest API documentation in the below url
http://localhost:8989/bank-api/swagger-ui.html
H2 In-Memory Database
Make sure to use jdbc:h2:mem:testdb as your jdbc url. If you intend to you use custom database name, please define datasource properties in application.yml
http://localhost:8989/bank-api/h2-console/
Testing the Bank APP Rest Api
-
Please use the Swagger url to perform CRUD operations.
-
Browse to <project-root>/src/test/resources to find sample requests to add customer and accounts.
Authors
- Shyam Bathina
Related Skills
feishu-drive
341.8k|
things-mac
341.8kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
341.8kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
postkit
PostgreSQL-native identity, configuration, metering, and job queues. SQL functions that work with any language or driver
