Prerequisites
Before you begin, ensure you have the following installed:- Python 3.8+ - For running the Flask backend
- Node.js 18+ and npm - For the React frontend
- Git - To clone the repository
Get the source code
Clone the repository to your local machine:Start the backend
Start the frontend
Log in to the system
The system automatically creates a default admin user during initialization:Explore the system
After logging in, you’ll have full access to:
- Products - Manage inventory items
- Purchases - Record incoming stock
- Point of Sale - Process sales transactions
- Customers & Suppliers - Manage stakeholders
- Reports - View inventory analytics
- Users - Create and manage user accounts (admin only)
- Audit Logs - Track system activities (admin only)
User roles
The system includes three predefined roles:| Role | Description | Access Level |
|---|---|---|
| Admin | Full system access including user management and audit logs | All features |
| Gestor | Manage products, inventory movements, and reports | No user management or audit access |
| Consultor | Read-only access to view inventory and reports | View only |
Next steps
Installation Guide
Detailed installation instructions and configuration options
API Reference
Explore the REST API endpoints
User Management
Learn about roles, permissions, and authentication
Product Management
Start managing your inventory
Troubleshooting
Backend won’t start
If you see import errors, ensure all dependencies are installed:Frontend won’t connect to backend
Verify the backend is running onhttp://localhost:8000 and check for CORS errors in the browser console. The backend is configured to accept requests from any origin in development mode.
Database errors
The SQLite database fileinventory.db is created automatically in the backend directory. If you encounter database errors, you can delete this file and restart the backend to recreate it with fresh data.
Port already in use
If port 8000 or 5173 is already in use:- Backend: Modify the port in
backend/main.py:73(changeport=8000) - Frontend: Vite will automatically suggest an alternative port
For production deployment, see the Installation Guide for environment-specific configuration options.