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
- Host: GitHub
- URL: https://github.com/ramyadeveloper5/retail-insights-sales-api
- Owner: Ramyadeveloper5
- Created: 2025-04-15T15:22:01.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-15T15:29:16.000Z (6 months ago)
- Last Synced: 2025-04-15T16:42:00.546Z (6 months ago)
- Topics: flask-sqlalchemy, pandas-library, postgresql, postman, python, restapi-backend, retail-sales-data
- Language: Python
- Homepage:
- Size: 48.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.txt
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 EnvironmentSTEP 2 : Database Setup
Create the Database in Postgresql
Create the table
Insert some Dummy DataSTEP 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