AutoPart Pro is an open-source inventory and e-commerce platform built for automotive parts businesses. It combines a role-based REST API (Node.js + Express + MySQL) with a React frontend, giving admins, employees, and customers a tailored experience from one unified system.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JFKoryy/autopart-pro/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Get the backend and frontend running locally in under 10 minutes.
API Reference
Explore all REST endpoints — auth, products, sales, and user management.
Architecture
Understand the MVC structure, database schema, and request lifecycle.
Features
Inventory management, checkout, role-based access, and stock alerts.
What AutoPart Pro Provides
AutoPart Pro covers the full lifecycle of an automotive parts business — from stocking shelves to completing customer orders.Inventory Management
Full product CRUD with SKU tracking, categories, brands, and compatible vehicle lists.
Sales & Checkout
Transactional checkout that records sales and automatically deducts stock.
Role-Based Access
Three roles — admin, employee, client — each with scoped permissions.
Stock Alerts
Real-time low-stock notifications via Node.js EventEmitter with configurable thresholds.
JWT Authentication
Stateless auth with signed JWT tokens and bcrypt password hashing.
REST API
Decoupled Express API ready to integrate with any frontend or third-party client.
Getting Started
Configure environment variables
Create a
.env file in the backend/ directory with your MySQL credentials and JWT secret. See Environment Variables for the full reference.Initialize the database
Run the provided SQL script against your MySQL 8+ instance to create all tables and seed the schema.