Get Started Fast
This guide will help you get Sistema de Ventas installed and running on your local machine as quickly as possible.Clone and Install Dependencies
Clone the repository and install both PHP and JavaScript dependencies:
Configure Environment
Set up your environment file and generate the application key:Edit
.env and configure your database connection:.env
Set Up Database
Create the database and import the schema:The SQL file includes the complete schema with sample data for all tables.
Create Storage Link
Link the storage directory for file uploads:This creates a symbolic link to allow public access to uploaded files (product images, logos, etc.).
Start Development Server
Launch the Laravel development server:Your application is now running at
http://localhost:8000Log In
Access the application and log in with the default credentials:
- URL: http://localhost:8000
- Username: Check the
usuariotable in your database for existing users - Password: Depends on the imported data
Verify Your Installation
After completing the steps above, verify everything works:Test Product Management
Test Product Management
- Navigate to the Products section
- Try creating a new product
- Upload a product image
- Search for products using the search bar
Test Category System
Test Category System
- Go to Categories
- Create a new category
- Assign products to the category
Check User Profile
Check User Profile
- Click on your profile
- Update your information
- Try uploading a profile photo
- Change your password
What’s Next?
Learn Core Features\
Explore product management, inventory, and more
Configure Settings\
Learn about database, environment, and auth configuration
Understand the API\
Dive into routes, controllers, and API structure
Database Schema\
Review the complete database structure
Common First Steps
Create Your Company Profile
- Navigate to Company Settings
- Enter your business information:
- Company name
- RUC (tax ID)
- Address and contact details
- Upload your company logo
- Save changes
Set Up Product Categories
Before adding products, create categories:- Go to Categories
- Click Add New Category
- Create categories like:
- Electronics
- Clothing
- Food & Beverages
- Office Supplies
Add Your First Product
- Navigate to Products
- Click Add New Product
- Fill in the details:
- Category
- Product code
- Name
- Price
- Initial stock
- Description
- Upload a product image
- Save the product
Create Additional Users
- Go to Users
- Click Add New User
- Set user type (Administrator or Employee)
- Provide user details
- Set initial password
Troubleshooting Quick Start Issues
Database Connection Errors\
Database Connection Errors\
- Verify MySQL is running
- Check credentials in
.env - Ensure database exists
- Test with:
php artisan tinkerthenDB::connection()->getPdo();
Permission Denied Errors\
Permission Denied Errors\
Asset Compilation Fails\
Asset Compilation Fails\
Artisan Commands Not Working\
Artisan Commands Not Working\
- Check PHP version:
php -v(must be 7.3+) - Verify composer install completed successfully
- Clear config cache:
php artisan config:clear - Regenerate key:
php artisan key:generate
Development Workflow
Once you have Sistema de Ventas running, here’s a typical development workflow:- Make code changes in your editor
- Watch assets with
npm run watchfor auto-compilation - Test changes at
http://localhost:8000 - Clear cache if needed:
php artisan cache:clear - Run migrations for database changes:
php artisan migrate
Getting Help
For detailed information on any feature, check the relevant documentation section. For installation issues, see the full Installation Guide.