Web application designed to simplify the management and organization of your beers.
This is a Laravel project configured to run within Docker.
- Docker
- Docker Compose
-
Clone the repository or unzip
git clone git@github.com:simonemarino/BrewMaster.git
-
Navigate into the project directory:
cd your_project_name
-
Copy the .env.example file and rename it to .env:
cp .env.example .env
-
Modify the .env file to configure your database settings:
Update the following variables to match your database configuration:
DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=beer DB_USERNAME=beer_user DB_PASSWORD=!ed23zA24d
-
Build and start the Docker containers:
docker-compose up -d --build
The
start.sh
is an script automates inside docker upIf the start script fails to execute successfully, you can manually run the following commands:
-
Access the Docker container shell:
docker exec -it app-beers bash
-
Install PHP dependencies using Composer:
composer install
-
Generate the Laravel application key:
php artisan key:generate
-
Creating Symbolic Link for Storage Directory:
php artisan storage:link
-
Run the database migrations:
php artisan migrate
-
Populate the database with Seed (create User):
php artisan db:seed
If you want run the test, go to Docker container :
docker exec -it app-beers bash
php artisan test
Finally, you can access the application by visiting http://localhost
in your browser.
Your Laravel project is now set up and ready to use.
This project is licensed under the terms of the Apache License, Version 2.0. Please see the LICENSE file for full details.