This GitHub repository contains a Spring Boot application that implements a REST API for fetching parent transactions from a JSON file and an Angular frontend application for displaying and interacting with the parent transaction data.
- Fetches parent transactions from the provided JSON file (Parent.json).
- Supports server-side pagination to retrieve a subset of parent transactions per page.
- Allows sorting of parent transactions based on different fields.
- Calculates the total paid amount for each parent transaction by considering the child installment payments from a separate JSON file (Child.json).
- Provides response headers with pagination details, including the total number of parent transactions, total pages, and current page.
- Displays the parent transactions in a table format.
- Supports server-side pagination for navigating through the parent transactions.
- Enables sorting of parent transactions based on different fields.
- Provides a clickable "Total Paid Amount" column to a separate page showing the corresponding child installment data.
- Spring Boot
- Spring Web MVC
- Angular
- TypeScript
- HTML
- CSS
-
Clone the repository:
git clone https://github.com/your-username/parent-transactions.git
-
Build and run the Spring Boot application:
./gradlew clean build ./gradlew bootRun
-
Open the frontend project (Angular)
Install the dependencies:
npm install ng serve
-
The API documentation for the backend API provides detailed information about the available endpoints, request/response formats, and query parameters. It can be accessed by opening the following URL in a web browser:
http://localhost:8080/swagger-ui.html
# frontend
http://localhost:4200