sureshchandrarhca15 / credit-card-processor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Credit Card Processor Application

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

Installation

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

Docker

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

SpringFox Swagger

Swagger UI will be available on the following link:

localhost:8080/ccp/v1/swagger-ui.html
localhost:8080/ccp/v1/v2/api-docs

RestAPI Details

alt text

Test Cases

alt text

About


Languages

Language:Java 94.9%Language:Shell 4.7%Language:Dockerfile 0.3%