Payments DEMO
This project was developed to demonstrate a service that will provide REST endpoints
to Fetch/Create/Update/Delete payment resources and persist their state. (e.g. to a database)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Depending on how you want to build/run the application (methods below) you might need to have docker & docker-compose installed.
The application itself is using Java 8, so you need to have a JDK installed of that version to build/run without Docker.
If you have chosen the Docker/Docker Compose method, you will not need to install anything as it is handled by Docker.
Clone or download the repository
Build & Run
At the root of the project:
Without Docker/Docker Compose
mvn clean package
Run
java -jar target/demo.jar
or
mvn spring-boot:run
This will only run the application itself, without any external service or middleware
or if you want to rebuild the docker image:
docker-compose up
This method is using Docker’s MultiStage build which creates an intermediary container with the build dependencies
docker-compose up --build
(* For demonstration purposes. Can be disabled for production deployments!)
Automated integration tests are using an embedded MongoDB and sample data (payments.json). These should pass when building the artifact.
Miklos Barabas - GitHub