This project is a web application for managing an online store for gym equipment developed with Laravel.
Clone the repository:
git clone https://github.com/jmonto98/gymstore.git
cd gymstore
Install PHP dependencies:
composer install
Install JavaScript dependencies:
npm install
Copy the environment configuration file:
cp .env.example .env
Generate the application key:
php artisan key:generate
Configure the database in the .env
file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=gymstoredb
DB_USERNAME=your_username
DB_PASSWORD=your_password
Create the gymstoredb
database in MySQL:
mysql -u root -p
CREATE DATABASE gymstoredb;
EXIT;
Run migrations:
php artisan migrate
To populate the database with initial data, connect to MySQL and run the script:
mysql -u your_username -p gymstoredb
source scripts/populate_models.sql
Start the Laravel development server:
php artisan serve
Open a web browser and visit http://localhost:8000
to access the application.
This project is licensed under the MIT License - see the LICENSE.md file