Skip to content

Latest commit

 

History

History
129 lines (83 loc) · 2.13 KB

README.md

File metadata and controls

129 lines (83 loc) · 2.13 KB

solid-octo-pancake

A system to manage support tickets. customers register as users and can create tickets, then admins assign them to agents, and all parties can view ticket statuses.

Requirements

If you don't want to use Docker, the best way to setup the project is to use Homestead or Laragon.

Development Environment (No Docker)

  1. Clone Project
git clone [email protected]:vlltr/solid-octo-pancake.git
cd solid-octo-pancake
  1. Install dependencies
composer install
  1. Create .ENV
cp .env.example .env
  1. Generate app key
php artisan key:generate
  1. Run migrations
php artisan migrate
  1. Run application
php artisan serve

Once you have started, application will be accessible in web browser at http://localhost:8000

Development Environment (Docker use Sail)

It is recommended to run all from the WSL.

  1. Clone Project
git clone [email protected]:vlltr/solid-octo-pancake.git
cd solid-octo-pancake
  1. Download dependencies
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
  1. Configuring a shell alias
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
  1. Create .ENV
cp .env.example .env
  1. To start all of the Docker containers
sail up

or start Sail in "detached" mode

sail up -d

Once the application's containers have been started, you may access the project in web browser at http://localhost.

  1. Generate app key
sail artisan key:generate
  1. Run migrations
sail artisan migrate

Executing Commands

# Running Artisan commands locally (No Docker)...
php artisan queue:work
# Running Artisan commands with Laravel Sail (Docker)...
sail artisan queue:work