An open API service indexing awesome lists of open source software.

https://github.com/ramyadeveloper5/retail-insights-sales-api

To Develop the Retail Insights Sales API Task By Using Flask
https://github.com/ramyadeveloper5/retail-insights-sales-api

flask-sqlalchemy pandas-library postgresql postman python restapi-backend retail-sales-data

Last synced: 6 months ago
JSON representation

To Develop the Retail Insights Sales API Task By Using Flask

Awesome Lists containing this project

README

          

TASK NAME : Retails Insights API By using Flask

BACKEND : Python - Flask

DATABASE : Postgresql

TESTING : Postman

STEPS TO FOLLOW TO DEVELOP THE TASK

STEPS 1 :
Create a Virtual Environment with the name (venv)
Activate the Environment

STEP 2 : Database Setup
Create the Database in Postgresql
Create the table
Insert some Dummy Data

STEP 3 : Flask Setup
Install the Packages like flask, pandas, psycopg2, SQLAlchemy
Create .env file for store all the environment values
Create the Configure File for storing database values
Create the new file(init) to Setup the Database with SQLAlchemy
Create the Sales Table Model with the new file(models)
Create the routes.py file to write the api for two routes
1. Summary routes
2. Filter by the Product routes
Create the flask file to the run Project : (python run.py)

STEP 4 : Testing in Postman