This project consists of various modules for managing user accounts, CFO tasks, finance operations, and tooltips. Each module is designed to handle specific functionalities as outlined below.
The accounts.js
file handles functionalities related to user accounts.
- Date Handling: Retrieves the current date in YYYY-MM-DD format.
- Password Change: Allows users to change their password.
- Entry Management: Manages various types of financial entries.
- Token Validation: Validates JWT tokens to authenticate users.
- UI Interactions: Handles various user interface interactions for accounts.
getDate()
: Returns the current date in YYYY-MM-DD format.changePassword(currentPassword, newPassword)
: Changes the user's password.make_request(mailid, type, amount, entry_date, accountNumber)
: Makes a request to add financial entries.
The cfo.js
file handles tasks specific to the Chief Financial Officer (CFO) role.
- Token Validation: Validates JWT tokens to authenticate CFOs.
- Entry Management: Manages various types of financial entries specific to CFOs.
- Password Change: Allows CFOs to change their password.
getDate()
: Returns the current date in YYYY-MM-DD format.changePassword(currentPassword, newPassword)
: Changes the CFO's password.make_request(mailid, type, amount, entry_date, accountNumber)
: Makes a request to add financial entries.
The finance.js
file handles general financial operations.
- Date Handling: Retrieves the current date in YYYY-MM-DD format.
- Password Change: Allows users to change their password.
- Entry Management: Manages various types of financial entries.
- Token Validation: Validates JWT tokens to authenticate users.
- UI Interactions: Handles various user interface interactions for finance operations.
getDate()
: Returns the current date in YYYY-MM-DD format.changePassword(currentPassword, newPassword)
: Changes the user's password.make_request(mailid, type, amount, entry_date, accountNumber)
: Makes a request to add financial entries.
This module handles tooltip interactions using myTippy.js
.
Clone the repository:
git clone <repository-url>
Navigate to the project directory:
cd Matched
Install the required dependencies:
npm install
To start the project, use the following command:
npm start
Ensure that you have a running backend server to handle API requests. Update the IP
and PORT
variables in the JavaScript files to match your server configuration.