This project is an application for customer profile management API using Java, Spring Boot.
- Git
- JDK 8
- Maven 3.0 or later
- SOAPUI 5 or later
To get started you can simply clone this repository using git:
git clone https://github.com/KalpaD/customer.git
cd customer
This is located at root level in word format High_level_architecture.docx
It includes the security architecture which will be used to support web and mobile clients.
This is also located at root level as yml file customer_profile
.
In order to get the customer service working you have set up following:
-
Copy the CRM-Legecy-Backend-soapui-project.xml file to convenient location and open it using SOAPUI
-
Open the mock service window by double clicking on CRMCustomerProfileMock
-
And run it.
-
The default mock port is 8089, Please change that if you have any port conflict.
The configuration is located in src/resources/application.yml
.
It contains the endpoint configurations which use by the API to communicate to these mock.
If you change the port please make sure to change the port in application.yml
as well.
You can run the application from the command line using:
mvn spring-boot:run
Or you can build a single executable JAR file that contains all the necessary dependencies, classes, and resources with:
mvn clean package
Then you can run the JAR file with:
java -jar target/*.jar
- Import
customer-tech-test.postman_collection
to postman which is located at root level. - You can use this collection to invoke the customer resources.
Once you build the project successfully, you can find the Jacoco test report at
/target/site/jacoco/index.html`