Documentation Index
Fetch the complete documentation index at: https://mintlify.com/obando1998/Proyecto_UCP/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have the following installed:- Docker (20.10 or higher)
- Docker Compose (1.29 or higher)
- A MySQL database server accessible from your Docker container
This quick start guide uses Docker Compose for the fastest setup experience. For production deployment, see the Installation Guide.
Setup Steps
Configure Database Connection
Update the database credentials in
Config/Conexion.php:Config/Conexion.php
Initialize the Database
Import the database schema and default users:This creates the following tables:
devoluciones- Product return recordsnotificaciones- User notificationslogin_attempts- Security trackingusuarios- User accountsproducto- Product catalog
| Username | Password | Role | Grado |
|---|---|---|---|
| ANALISTA | 1088350785 | Admin | 1 |
| AUXILIAR | 895623 | Auxiliary | 2 |
| CONSULTA | 895623 | Consultation | 3 |
Launch with Docker Compose
Start the application using Docker Compose:The The application builds from this Dockerfile:
Docker-compose.yml configuration:Docker-compose.yml
Dockerfile
First Login
- Admin Access
- Auxiliary Access
- Consultation Access
Log in with administrator credentials to access the full dashboard:
- Username:
ANALISTA - Password:
1088350785 - Redirects to: Dashboard with analytics and pending approvals
AuthController.php:Controllers/AuthController.php
Navigate the Dashboard
After logging in as ANALISTA, you’ll see the main dashboard with real-time statistics:Dashboard Features
TheHomeController.php loads analytics from the DevolucionModel:
Controllers/HomeController.php
Statistics Query
The statistics are generated by a comprehensive SQL query:Models/DevolucionModel.php
Test the Workflow
Create a Return Request
- Log out and log back in as
AUXILIAR - Fill out the return registration form with:
- Customer NIT and details
- Product code from catalog
- Deviation type (return/shortage/surplus)
- Quantities and evidence photo
- Submit the form
Review as Admin
- Log out and log back in as
ANALISTA - Navigate to the admin panel
- Review the pending request
- Approve or reject with authorization code
Verify Installation
Check that all services are running:Common Issues
Port 8097 already in use
Port 8097 already in use
Edit Then restart:
Docker-compose.yml and change the port mapping:docker-compose down && docker-compose up -dDatabase connection failed
Database connection failed
Verify the database is accessible from the Docker container:If the database is on the same host, use
host.docker.internal instead of an IP address.Session timeout immediately
Session timeout immediately
Check PHP session configuration:Ensure
session.save_path is writable by the www-data user.File uploads not working
File uploads not working
Verify the uploads directory has correct permissions:
Next Steps
Installation Guide
Set up DevolutionSync for production deployment
API Reference
Explore the MVC controllers and models
For security best practices and production hardening, refer to the Installation Guide.