https://github.com/imprvhub/ecommerce-data-analysis
perform in-depth data analysis from two different next.js projects using python, with flask and gunicorn deployed on azure. [Implementation].
https://github.com/imprvhub/ecommerce-data-analysis
azure data-analysis-python flask gunicorn implementation mysql python
Last synced: 7 months ago
JSON representation
perform in-depth data analysis from two different next.js projects using python, with flask and gunicorn deployed on azure. [Implementation].
- Host: GitHub
- URL: https://github.com/imprvhub/ecommerce-data-analysis
- Owner: imprvhub
- Created: 2024-02-26T19:59:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T13:47:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T23:17:57.945Z (over 1 year ago)
- Topics: azure, data-analysis-python, flask, gunicorn, implementation, mysql, python
- Language: Python
- Homepage: https://ecommerce-data-analysis.vercel.app
- Size: 419 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Welcome to the [E-commerce Data Analysis](https://ecommerce-data-analysis.vercel.app/) Project.
> [!NOTE]
> This project is an implementation.
This implementation showcases and provides a comprehensive analysis of e-commerce data. Using Python (Flask Framework) with GUnicorn and Azure Deployment. For detailed insights, please visit [this link](https://ivanluna.dev/projects/post-python-ecommerce/).
### Demo
Visit the live app: [ecommerce-data-analysis.vercel.app](https://ecommerce-data-analysis.vercel.app/)
### Preview

### Update (April 24, 2024)
- **Migration from Azure to Vercel**: Significantly improved User Experience (UE) by transitioning the deployment infrastructure from Azure to Vercel. This strategic migration addresses performance concerns encountered with the previous Azure deployment. Leveraging Vercel's optimized platform ensures smoother and more efficient operations, enhancing overall system reliability and responsiveness.
### Key Features:
1. **Retrieve Data like a Super-Admin:**
Obtain comprehensive data from store managers, including information about their stores, products, completed or pending sales, and customers.
2. **Comparative Rendering of Analytical Insights:**
Render and compare the acquired data, providing analytical insights through tables, Plotly Express graphs, and Matplotlib visualizations.
3. **Dynamic Dashboard:**
Access a dynamic dashboard that allows real-time monitoring and analysis of e-commerce metrics.
4. **User-Friendly Interface:**
Navigate through a user-friendly interface designed for ease of use and efficient data exploration.
### Prerequisites:
[**Python 3.11**](https://www.python.org/downloads/release/python-3110/)
### Installation and Local Execution
#### 1. Clone 'Code With Antonio' Projects.
In order to this implementation works properly you must to clone and set the [ecommerce-admin](https://github.com/antonioerdeljac/next13-ecommerce-admin) (in first place) and then [ecommerce-store](https://github.com/antonioerdeljac/next13-ecommerce-store) projects from 'Code With Antonio' (From March 2024 are paid content). For detailed tutorial please visit: [Full Stack E-Commerce + Dashboard & CMS: Next.js 13 App Router, React, Tailwind, Prisma, MySQL, 2023](https://www.youtube.com/watch?v=5miHyP6lExg).
DISCLAIMER: Make sure to create a functional store from ecommerce-admin with products that can be viewed on the client side ecommerce-store. Keep in mind that the payments made in the demonstration are simulated and use generic data, following the recommended practices of [Stripe Docs](https://stripe.com/docs/testing ). If you have already configured payment management according to your region, then skip the simulation. It is recommended not to skip this step unless you are certain and take responsibility for the respective movements or transactions you generate. This project is purely demonstrative to showcase how a Python implementation works. We are not responsible for any misunderstandings or mismanagement. For more information: [Click here.](https://ecommerce-data-analysis.vercel.app)
#### 2. Clone the implementation repository
```bash
git clone https://github.com/imprvhub/ecommerce-data-analysis.git
```
#### 2.1 Navigate to the project directory
```bash
cd /your/folder/directory/ecomerce-data-analysis
```
#### 3. Install Dependencies
```bash
pip install -r requirements.txt
```
#### 4. Start the application locally
```bash
python3 app.py
```
The application should now be accessible at http://localhost:8000.
### Conclusion:
#### Known Issues:
- **Performance Latency**: Occasionally, high Azure instance loads result in significant latency. To address this, I plan to migrate the project to a different platform in the future, thereby improving performance. [DONE: migrated to Vercel](https://github.com/imprvhub/ecommerce-data-analysis/releases/tag/v4.0.0).
#### Achievements
- **Successful Integration of Next.js Data:** Achieved the implementation of Python, effectively combining data extracted from two Next.js projects.
#### Learnings
- **Azure Deployment Debut:** This project marked my first deployment to Azure. While I had prior experience with Render, Vercel, and Netlify, configuring my Python application, powered by Gunicorn, to efficiently run on Azure presented a unique challenge.
#### Future Plans
- **Enhancing Performance Latency:** Occasionally, high Azure instance loads result in significant latency. To address this, I plan to migrate the project to a different platform in the future, thereby improving performance.
- **Interactive Enhancements:** In the future, I aspire to implement interactivity to the graphics and analytics, enhancing the overall user experience.
### Acknowledgments
- **Special Thanks to Code With Antonio:** Expressing my gratitude for inspiring with foundational projects and making this implementation possible.
### Feedback & Support
Your input matters, and I'm ready to help address any inquiries or feedback you may have. Your contributions are essential for refining the project and enhancing the overall user experience. Don't hesitate to get in touch with me:
Feel free to share your insights, recommendations, or suggestions for continuous improvement. If you encounter any challenges or require assistance, please [create a new GitHub issue](https://github.com/imprvhub/ecommerce-data-analysis/issues/new). Be sure to provide a detailed description of your issue to facilitate prompt and precise support.
### License
For more information regarding this topic please read the following [User Agreement Section.](https://ecommerce-data-analysis.vercel.app)