Prerequisites
Before you begin, make sure you have the following installed:- Docker Desktop (includes Docker Compose)
- Git (to clone the repository)
- A text editor for configuration
Docker Desktop is available for Windows, macOS, and Linux. Make sure to start Docker Desktop before proceeding.
Installation
Configure Environment Variables
Copy the example environment file and configure it with your settings:The default configuration works out of the box for local development. Here are the key variables:
.env
For local development, you can use the default values. The database will be automatically initialized with sample data including products, categories, and brands.
Start the Application
Build and launch all services with a single command:This will:
- Build the PHP/Apache application container
- Start a MySQL 8.0 database
- Automatically import the database schema and sample data
- Configure networking between services
The first build may take 2-3 minutes as it downloads images and installs dependencies. Subsequent starts will be much faster.
Access the Application
Once the containers are running, access the application at:
- Main Application: http://localhost:8080
- Admin Dashboard: http://localhost:8080/admin/dashboard.php
- 4 product categories (Laptops, Computadoras, Componentes, Accesorios)
- 8 brands (ASUS, HP, Lenovo, Dell, MSI, Corsair, Logitech, Kingston)
- 15 sample products with real specifications
- Complete database schema with all features enabled
Verify Installation
To verify everything is working correctly:app and db containers running with healthy status.
Default Access
The application is now ready to use with these default endpoints:| Service | URL | Notes |
|---|---|---|
| Website | http://localhost:8080 | Customer-facing e-commerce site |
| Admin Panel | http://localhost:8080/admin/ | Backend management interface |
| phpMyAdmin | http://localhost:8081 | Database management (dev profile only) |
What’s Included
Your fresh CompuTécnicos installation includes:- Full E-commerce Platform: Product catalog, shopping cart, checkout
- Payment Integration: PayPal sandbox configuration
- Electronic Invoicing: Alegra/Siigo integration in simulation mode
- Inventory Management: Stock tracking and supplier management
- Order Management: Complete order lifecycle with status tracking
- User System: Customer accounts with profile management
- Admin Dashboard: Full backend for managing products, orders, and inventory
- Review System: Customer reviews with ratings and images
- Sample Data: 15 products across 4 categories to explore features
Common Commands
Here are the most frequently used commands:Next Steps
Now that CompuTécnicos is running, you can:Docker Setup Guide
Learn about advanced Docker configuration and deployment
Configuration
Configure PayPal, invoicing, and environment settings
Admin Guide
Learn how to manage your store from the admin panel
API Reference
Explore the available APIs and endpoints
Troubleshooting
Port Already in Use
If port 8080 is already in use, change theAPP_PORT in your .env file:
.env
Database Connection Failed
If the application can’t connect to the database:-
Check if the database container is healthy:
-
View database logs for errors:
-
Restart the database container:
Composer Dependencies Failed
If composer installation fails during build:Need Help?
If you encounter issues not covered here:- Check the Docker Setup Guide for detailed troubleshooting
- Review container logs with
docker-compose logs - Ensure Docker Desktop is running and has sufficient resources
- Verify all required ports are available