This is a simple Flask application that allows users to manage transactions. It provides basic CRUD (Create, Read, Update, Delete) operations for transactions. Users can view a list of transactions, add new transactions, edit existing transactions, and delete transactions.
- Clone the repository:
git clone https://github.com/ibm-developer-skills-network/flask_app.git
- Navigate to the project directory:
cd flask_app
- Install the required dependencies:
pip install -r requirements.txt
The following dependencies will be installed:
Flask==2.3.2
Flask_Testing==0.8.1
- Run the Flask application:
flask run
The application will be accessible at http://localhost:5000.
- The following routes are available:
/: View a list of all transactions.
/add: Add a new transaction.
/edit/<transaction_id>: Edit an existing transaction.
/delete/<transaction_id>: Delete a transaction.
- To run the tests, execute the following command:
python test.py
The test results will be displayed in the console.
This project is licensed under IBM Skills Network.