Assignment 
This application creates REST API using Flask-restAPI in Python
- This application populates and provides retrieval features for transactions of a company.
- Transaction information is coming as files (let’s say every 5 minutes) in a folder.
- Another folder contains a file, which contains a reference data for products, against which thetransaction are happening.
- This application is an in-memory application so no persistent storage is required. i.e. You canreload the already available data in the transaction folder upon start-up of the application.
- A transaction record contains following attributes in a comma separated formata.transactionIdb.productIdc.transactionAmountd.transactionDatetime
- The product reference data have following attributes in a CSV.a.productIdb.productNamec.productManufacturingCity
- Reference data is static and transaction data is keep coming in real-time in their respectivefolders.
-
Before proceeding please install all the dependencies using the requirements.txt file in the root folder by using,
pip install -r requirements.txt or python -m pip install -r requirements.txt
-
Start the app by using the command, python main.py, if all the dependencies are installed properly you can see the app running at 127.0.0.0/5000 or localhost/5000 in your browser as follows.**
CMD

Home

Product

Transaction

Transaction ID

Transaction Summary By Product

Transaction Summary By Manufacturing City

Unit Tests
