Skip to content

This application creates REST API using Flask-restAPI in Python.

Notifications You must be signed in to change notification settings

devanandchauhan/FlaskRestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment CI Status

This application creates REST API using Flask-restAPI in Python

Assignment Environment:

  1. This application populates and provides retrieval features for transactions of a company.
  2. Transaction information is coming as files (let’s say every 5 minutes) in a folder.
  3. Another folder contains a file, which contains a reference data for products, against which thetransaction are happening.
  4. 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.
  5. A transaction record contains following attributes in a comma separated formata.transactionIdb.productIdc.transactionAmountd.transactionDatetime
  6. The product reference data have following attributes in a CSV.a.productIdb.productNamec.productManufacturingCity
  7. Reference data is static and transaction data is keep coming in real-time in their respectivefolders.

Steps

  • 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.**

Screenshots

CMD Server

Home Home

Product Product

Transaction Transaction

Transaction ID Transaction ID

Transaction Summary By Product Transaction Summary By Product

Transaction Summary By Manufacturing City Transaction Summary By Manufacturing City

Unit Tests Unit Tests

About

This application creates REST API using Flask-restAPI in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages