Skip to content

Web application designed to simplify the management and organization of your beers.

Notifications You must be signed in to change notification settings

simonemarino/BrewMaster

Repository files navigation

BrewMaster

Author

Web application designed to simplify the management and organization of your beers.

This is a Laravel project configured to run within Docker.

Version

Version Version Version Version Version

Prerequisites

  • Docker
  • Docker Compose

Getting Started

  1. Clone the repository or unzip

    git clone git@github.com:simonemarino/BrewMaster.git
    
  2. Navigate into the project directory:

    cd your_project_name
    
  3. Copy the .env.example file and rename it to .env:

    cp .env.example .env
    
  4. 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
    
  5. Build and start the Docker containers:

    docker-compose up -d --build
    

    The start.sh is an script automates inside docker up

    If the start script fails to execute successfully, you can manually run the following commands:

    1. Access the Docker container shell:

      docker exec -it app-beers bash
      
    2. Install PHP dependencies using Composer:

      composer install
      
    3. Generate the Laravel application key:

      php artisan key:generate
      
    4. Creating Symbolic Link for Storage Directory:

      php artisan storage:link
      
    5. 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.

License

This project is licensed under the terms of the Apache License, Version 2.0. Please see the LICENSE file for full details.

License

About

Web application designed to simplify the management and organization of your beers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published