This is a simple React application that allows users to manage their bank transactions. Users can view a table of all transactions, add new transactions, filter transactions by description, and sort transactions alphabetically by category or description.
- View a table of all transactions with details like date, description, category, and amount.
- Add new transactions, including date, description, category, and amount.
- Filter transactions by typing into the search bar. Only transactions with a description matching the search term are displayed.
- Sort transactions alphabetically by category or description.
- Delete transactions, which removes them from the table.
Follow these instructions to get the project up and running on your local machine.
- Node.js and npm installed on your machine.
- Clone the repository to your local machine.
git clone <repository-url>
- Navigate to the project directory.
cd bank-transactions-react-app
- Install the required dependencies.
npm install
To fetch data for the application, we are using JSON Server. You can start JSON Server with the following steps:
-
Open a new terminal window.
-
Navigate to the project's root directory.
cd bank-transactions-react-app
- Start JSON Server using the provided JSON data file (db.json).
json-server --watch db.json --port 3001
JSON Server will now be running on port 3001 and will provide the API for fetching and managing transactions data.
- Start the React development server.
npm start
-
Open your web browser and go to
http://localhost:3000
to access the application. -
You can now interact with the application, add new transactions, filter transactions, and sort them as needed.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix.
-
Make your changes and test them thoroughly.
-
Commit your changes and push them to your fork.
-
Create a pull request to merge your changes into the main repository.
Please make sure to follow the code style and conventions used in the project.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to customize this README to include additional information or specific project details as needed.