This project is a React.js-based financial dashboard designed to display user information, card details, transaction history, and various financial charts.
This project fulfills the following technical requirements:
-
Frameworks/Libraries:
- React.js: Used as the primary framework for the front end.
- TailwindCSS: Employed for styling the components.
- React Router: For navigation between Dashboard and Settings pages.
- Chart.js: Used for rendering financial charts.
- React-chartjs-2: React wrapper for Chart.js.
- Zod: Library for validation of forms.
-
API Integration:
- Dummy API endpoints have been mocked to fetch user information, card details, transaction history, and chart data. Custom React hooks were used to simulate API calls and manage data fetching.
-
Routing:
- React Router is implemented to enable navigation between the "Dashboard" and "Settings" pages.
-
Charting Library:
- Chart.js along with react-chartjs-2 is used for rendering the line charts and the pie chart.
Follow these steps to run the React application locally:
- Node.js (>=18.0.0)
- npm or yarn
-
Clone the repository:
git clone https://github.com/khayargoli/fendtest.git cd fendtest -
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm run dev # or yarn dev -
Open your browser:
- The application will be available at
http://localhost:5173(or the port specified by Vite).
- The application will be available at
-
Build the application:
npm run build # or yarn build