Tonali is a Laravel-based web application for a Colombian makeup store. It features an integrated ordering system, inventory management, product recommendations, and user registration, providing a streamlined shopping experience while promoting local products.
Before setting up the project, make sure you have the following installed:
- PHP 8.x
- Composer
- MySQL
- Node.js and npm (for asset compilation)
To set up the application locally, follow the steps below:
Clone the project to your local machine using the following command:
git clone https://github.com/kristianrpo/Tonali.git
cd TonaliInstall the necessary PHP packages using Composer:
composer installCreate a copy of the .env.example file and rename it to .env:
cp .env.example .envEdit the .env file to configure your database and other environment settings, such as:
DB_HOST DB_DATABASE DB_USERNAME DB_PASSWORD
Generate the Laravel application key for encryption purposes:
php artisan key:generateRun the database migrations to set up the required tables:
php artisan migrateFor managing frontend assets, install Node.js dependencies with npm:
npm installThen, compile the assets using Laravel Mix:
npm run devTo allow public access to the storage files (e.g., uploaded images), create a symbolic link to the storage folder:
php artisan storage:linkNow you can start the development server:
php artisan serveOnce the server is running and assets are compiled, navigate to the main products page:
http://localhost:8000/products