- Python 3.6+
- PostgreSQL
git clone https://github.com/sattyapatil/banking_backend_app.git
- Then go to the main application folder
cd ./banking_backend_app
- First create virtual env and activate it.
sudo apt install python3-virtualenv
virtualenv -p python3 venv
source ./venv/bin/activate
- Install all required packages
pip3 install -r requirements.txt
- export APP_SETTINGS="config.DevelopmentConfig"
- export DATABASE_URL="postgresql db url"
- Then run this command
python app.py
- After starting application go to the http://127.0.0.1:5000
- Application includes four endpoints
- "/" - GET - return all the transaction data
- "/transactions/
date
" - GET - returns all transaction for specific date (date format 10-02-22) - "/balance/
date
" - GET - return the balance amount at the end of the day - "/details/
id
" - GET - return transaction detail for transaction id - "/add" - POST - save transaction data