A spring boot application which exposes 4 RestEndpoints to execute credit cart related maintenance i.e Add new cards, manage credit and charge and list all cards from a system.
- Spring Boot 2.0.3.Release
- H2 Database Runtime (Memory)
- Spring Boot JDBC
- SpringFox Swagger
- SpringFox UI
- Junits
- SureFire Reports
- Docker com.spotify v1.3.6 Plugin
- Maven 4.0
This application is built using maven and all dependencies will be added automatically.
$ cd credit-card-processor
$ mvn clean
$ mvn clean spring-boot:run
For Running Tests and Generating the Test Report:
$ mvn test
$ mvn surefire-report:report-only
$ mvn site -DgenerateReports=false
To Create A Docker Image Using Maven
$ mvn clean package docker:build
This application is available over Docker Hub io
docker pull varuneshwarnathmathur/creditcardprocessor:latest
Docker Run
docker run -p '<require-port>':8080 varuneshwarnathmathur/creditcardprocessor:latest
Swagger UI will be available on the following link:
localhost:8080/ccp/v1/swagger-ui.html
localhost:8080/ccp/v1/v2/api-docs