https://github.com/ajaykumar2pp/backend-transaction-code
https://github.com/ajaykumar2pp/backend-transaction-code
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajaykumar2pp/backend-transaction-code
- Owner: ajaykumar2pp
- Created: 2024-02-18T05:05:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-18T05:14:37.000Z (over 1 year ago)
- Last Synced: 2025-01-22T08:15:25.584Z (4 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Transaction Analytics Application 🏦
## ⭐ Introduction
Welcome to the Transaction Analytics Application! This Node.js application provides endpoints to handle transactions and generate statistical data in the form of bar charts and pie charts.
## 🛤️ Endpoints
### Initialize Database
- **Endpoint:** POST `/initializeDatabase`
- **Description:** Initializes the database for transaction records.### List Transactions
- **Endpoint:** GET `/transactions`
- **Description:** Retrieves a list of transactions.### Transaction Statistics
- **Endpoint:** GET `/transaction-statistics`
- **Description:** Generates statistical data based on transactions.### Bar Chart Data
- **Endpoint:** GET `/bar-chart`
- **Description:** Retrieves data for generating a bar chart.### Pie Chart Data
- **Endpoint:** GET `/pie-chart`
- **Description:** Retrieves data for generating a pie chart.
### `Run project`
```shell
npm install
npm start
Open [http://localhost:8500] view
```