https://github.com/camerodev/bankapp
https://github.com/camerodev/bankapp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/camerodev/bankapp
- Owner: camerodev
- License: mit
- Created: 2025-04-06T18:37:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T18:37:41.000Z (about 2 months ago)
- Last Synced: 2025-04-07T16:43:26.758Z (about 2 months ago)
- Language: Java
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
1. Checkout the project from GitHub
```
git clone https://github.com/sbathina/BankApp```
2. Enable Lombok support on your IDERefer to the following link for instructions:
```
https://projectlombok.org/setup/eclipse```
3. 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```
4. Default port for the api is 8989### Prerequisites
* Java 8
* Spring Tool Suite 4 or similar IDE
* [Maven](https://maven.apache.org/) - 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
1. Please use the Swagger url to perform CRUD operations.
2. Browse to /src/test/resources to find sample requests to add customer and accounts.
## Authors
* **Shyam Bathina**