Sales Trend and Forecasting Using ML Final Year Project | Source Code
LIMITED TIME
Get Source Code ₹99
Real project UI Full source included

No live demo yet — message us for access

Our team shares demo access on WhatsApp within minutes

Sales Trend and Forecasting Using ML Final Year Project

Complete final-year project source code with frontend, backend, database, and setup guide. Instant download after secure payment.

  • MACHINE-LEARNING Stack
  • Instant Download
Secure CCAvenue payment Instant download link WhatsApp support

Choose your plan

Source Code Only

Full ZIP with frontend, backend, database & documentation.

₹99 one-time
  • Complete project source files
  • Database script included
  • How-to-run guide

What's in your download

Review features, setup steps, and credentials before you pay.

Project Overview

Description, tech stack, and what is included

Full source Frontend + backend
Database .sql file
Setup guide README included

Sales Trend and Forecasting Using ML in MERN Stack is a full-stack sales analytics and machine learning platform designed for businesses to upload sales/customer data, run predictive models, visualize sales trends, forecast future sales, segment customers, optimize marketing campaigns, and manage subscription-based ML access through separate User and Admin portals. The system uses a React frontend, Express backend, MongoDB database, and Python machine learning scripts invoked through python-shell.

The platform includes user authentication, CSV upload, data preview, sample file download, sales forecasting, market basket analysis, RFM segmentation, customer lifetime value prediction, churn analysis, response modeling, uplift modeling, charts, confusion matrices, forecast graphs, result tables, subscription plans, dummy checkout, and admin management for users, plans, ML actions, packages, customers, admins, and revenue.

This project is suitable for B.Tech, M.Tech, BCA, MCA, BE, ME, BSc, and MSc students who need a practical final year project, major project, or minor project based on sales forecasting, machine learning, business analytics, customer segmentation, marketing analytics, MERN stack development, Python ML integration, CSV data processing, MongoDB database design, and admin dashboard functionality. FileMakr can provide this project with source code, project report, documentation, and setup support for academic submission.

Technical snapshot

Project
Sales Trend and Forecasting Using ML Final Year Project
Stack
MACHINE-LEARNING
Includes
Code, DB, README
License
Academic submission
Secure CCAvenue payment · Instant download · Need help? WhatsApp us

Admin Features

Modules and controls available to administrators

  • Secure admin login
  • Admin JWT token stored in cookie
  • Admin dashboard
  • View customer statistics
  • View revenue statistics
  • View subscription plans
  • Quick navigation links
  • Manage subscription plans
  • Create subscription plan
  • Edit subscription plan
  • Delete subscription plan
  • Add plan name
  • Add plan price in INR
  • Manage ML actions
  • Create ML feature/action
  • Edit ML action
  • Delete ML action
  • Map each ML action to a subscription plan tier
  • Manage packages
  • View user package assignments
  • Edit user package assignments
  • Manage user upgrades
  • Manage customers
  • List registered users
  • Search customers
  • View customer details
  • Manage registered users
  • View payment and revenue records
  • Track subscription revenue
  • Manage admins
  • List all admins
  • Update admin records
  • Delete admin accounts
  • Add new admin accounts
  • View admin profile
  • Update admin profile details
  • Change admin password
  • Reset admin password
  • Manage users, plans, actions, packages, customers, admins, and revenue from MongoDB-backed admin controls

The admin portal includes dashboard, manage plans, manage ML actions, manage packages, manage customers, revenue, all admins, add admin, admin profile, admin password update, and admin password reset modules

User Features

What end users can do in this application

  • User registration
  • User login
  • JWT token stored in cookie
  • Password reset
  • Landing page
  • Product overview
  • Login and signup links
  • User guide page
  • User dashboard
  • View account status
  • Quick links to predictions
  • Quick links to data upload
  • User panel as central navigation hub
  • Profile management
  • View name, email, phone, and username
  • Update name
  • Update email
  • Update phone
  • Update username
  • Change password
  • Upload sales CSV
  • Upload .csv file only
  • Upload file up to 100MB
  • Preview uploaded sales data
  • Paginated CSV preview
  • Delete uploaded data where supported
  • Download sample file
  • View current subscription plan
  • Compare plan tiers
  • Upgrade plan through dummy checkout
  • Access ML modules based on subscription plan
  • Run analysis from prediction pages
  • View prediction metrics
  • View charts and warnings
  • Download result files
  • Preview tabular output where available

The user portal includes landing page, login, signup, reset password, user guide, dashboard, user panel, profile, change password, upload sales data, preview data, and plans/billing modules.

Other Features

Additional capabilities included in the project

Machine Learning Modules

1. Sales Forecasting

  • Available from Free plan and above
  • Uses Facebook Prophet
  • Forecasts daily sales for the next 30 days
  • Shows top products
  • Shows train/test metrics
  • Displays interactive forecast charts

2. Market Basket Analysis

  • Available from Standard plan and above
  • Uses Apriori algorithm through mlxtend
  • Finds product association rules
  • Shows support, confidence, and lift
  • Requires main sales CSV

3. RFM Segmentation

  • Available from Standard plan and above
  • Uses K-Means clustering
  • Works on Recency, Frequency, and Monetary values
  • Segments customers into low, mid, and high value groups

4. Customer Lifetime Value Prediction

  • Available from Standard plan and above
  • Predicts customer lifetime value
  • Uses RFM-style features and clustering

5. Churn Analysis

  • Available in Premium plan
  • Uses XGBoost classifier
  • Predicts customer churn
  • Requires separate churn CSV
  • Shows accuracy, precision, recall, and confusion matrix

6. Response Modeling

  • Available in Premium plan
  • Uses XGBoost
  • Models marketing response by offer type
  • Compares actual vs predicted orders and revenue

7. Uplift Modeling

  • Available in Premium plan
  • Uses XGBoost and K-Means
  • Calculates uplift scores
  • Supports campaign ROI analysis
  • Identifies persuadables and lost causes

The project provides seven ML modules across plan tiers: sales forecasting, market basket analysis, RFM segmentation, LTV prediction, churn analysis, response modeling, and uplift modeling.


Subscription Plans

Plan Price ML Modules Included
Free ₹0 Sales Forecasting
Standard ₹999/month Sales Forecasting, Market Basket Analysis, RFM Segmentation, Customer LTV
Premium ₹1,999/month All Standard modules plus Churn Analysis, Response Modeling, Uplift Modeling

Plans and ML action mappings are seeded into MongoDB and can be modified from the Admin Panel.


Other Features

  • Full-stack MERN architecture
  • React frontend
  • Express backend
  • MongoDB database
  • Python ML scripts
  • Node-to-Python integration using python-shell
  • CSV upload
  • Sales data preview
  • Sample CSV download
  • Result file generation
  • Excel file output storage
  • Charts and visualizations
  • Confusion matrices
  • Forecast graphs
  • Data tables
  • Subscription-based ML access
  • Dummy payment checkout
  • Admin revenue management
  • User and admin portals
  • JWT authentication
  • Password reset
  • MongoDB-backed user, admin, plan, action, and revenue data
  • Static output files served from backend
  • Development setup using concurrently
  • Demo seed data
  • Sample users with Free, Standard, and Premium plans
  • Pre-uploaded sales CSV for selected demo accounts
  • Python path resolver support

The system architecture shows React client, Express API, Python ML scripts, and MongoDB working together, with uploaded CSV files stored under public/ and ML output files saved under excel_files/{userId}/.


Technology Used

Layer Technology
Frontend React 16, React Router 5
UI / Styling Bootstrap 4, Material-UI 4, Custom CSS, CSS Modules
Charts Chart.js, React-Chartjs-2
Alerts / Cookies SweetAlert, js-cookie
API Client Axios
Backend Node.js, Express 4
Authentication JWT
File Upload Multer
Data Parsing csv-parse, xlsx
Database MongoDB, Mongoose 7
Machine Learning Python 3.12+, pandas, numpy, scikit-learn, Prophet, mlxtend, xgboost
Visualization / Output matplotlib, plotly, openpyxl
Integration python-shell
Development concurrently

The uploaded documentation lists React, Express, JWT, Multer, MongoDB, Mongoose, Python, pandas, numpy, scikit-learn, Prophet, mlxtend, XGBoost, matplotlib, plotly, python-shell, and concurrently as part of the technology stack.


CSV Requirements

Main Sales CSV

Used by Sales Forecasting, Market Basket Analysis, RFM Segmentation, and LTV Prediction.

Column Description
InvoiceNo Invoice / transaction ID
Description Product description
Quantity Units sold
InvoiceDate Transaction date
CustomerID Customer identifier
UnitPrice Price per unit
Country Country

Stored as:


 

public/{userId}.csv

Churn CSV

Required columns include:


 

customerID, gender, SeniorCitizen, Partner, Dependents, tenure, PhoneService, PaperlessBilling, MonthlyCharges, TotalCharges, Churn

Stored as:


 

public/{userId}churn.csv

Uplift CSV

Required columns:


 

history, offer, conversion

Stored as:


 

public/{userId}uplift.csv

Market Response CSV

Required columns:


 

offer, conversion

The project documentation defines separate CSV requirements for main sales data, churn analysis, uplift modeling, and market response modeling

Python Scripts Reference

Script Algorithm Output
Sales_Forecasting.py Prophet time-series Forecast xlsx/csv
Apriori.py Apriori association rules Market_Basket.csv
RFM_Value.py K-Means RFM RFM.csv
LTValue.py K-Means + LTV scoring LTV.csv
Churn.py XGBoost classification churn.csv
Market.py XGBoost response modeling Console metrics
Uplift.py XGBoost + K-Means uplift uplift.csv, uplift1000.csv

How to Run

Step-by-step setup on your laptop or PC

Step 1: Navigate to application folder


 

cd "Code - Frontend + Backend"


Step 2: Install backend dependencies


 

npm install


Step 3: Install frontend dependencies


 

cd client

npm install

cd ..


Step 4: Install Python ML dependencies


 

pip install prophet pandas numpy scikit-learn mlxtend xgboost openpyxl matplotlib plotly


Step 5: Seed the database


 

npm run seed


Step 6: Start development servers


 

npm run dev

This starts both backend and frontend together.

Alternative: Run separately


 

npm start


 

npm run client

The setup instructions include installing backend dependencies, frontend dependencies, Python ML packages, seeding the database, and running development servers.

Login Credentials

Default demo accounts for testing after setup

Admin Panel

Role Email Password
Super Admin [email protected] Admin@123
Manager [email protected] Manager@123

User App

Plan Username Email Password Pre-uploaded Sales CSV
Free free_user [email protected] User@123 No
Standard standard_user [email protected] User@123 Yes
Premium premium_user [email protected] User@123 Yes

License

Usage terms for academic and personal projects

Related Tags

Search terms and categories for this source code

Sales Trend and Forecasting Using ML Final Year Project Source Code Final Year MACHINE-LEARNING Project Ready-to-Run Code With Database File Plagiarism-Free Faculty Approved Sales Trend and Forecasting Using ML sales forecasting system sales prediction project sales analytics project machine learning sales forecasting MERN stack machine learning project Python ML project MongoDB Express React Node project final year project major project minor project source code project report business analytics project customer segmentation project RFM analysis project churn prediction project market basket analysis project customer lifetime value prediction uplift modeling project XGBoost project Prophet forecasting project college project source code