Clone the project
git clone https://github.com/bazylys/arixess-test-case my-folder
Go to the project directory
cd my-folder
Init env file
cp .env.example .env
Install dependecies
docker run --rm \
-v "$(pwd)":/opt \
-w /opt \
laravelsail/php81-composer:latest \
composer install
To run this project, you will need to add the following environment variables to your .env file
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=your_db_name
DB_USERNAME=your_db_user
DB_PASSWORD=your_db_password
QUEUE_CONNECTION=database
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Start container
./vendor/bin/sail up
Make laravel configuration
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan migrate
./vendor/bin/sail artisan storage:link
./vendor/bin/sail npm install
./vendor/bin/sail npm run dev
./vendor/bin/sail artisan queue:work // should be working
If you want to create default manager user with credentials
Password | |
---|---|
manager@arixess |
Arixess1 |
run:
./vendor/bin/sail artisan db:seed --class=ManagerSeeder
OR you can create it by yourself using:
./vendor/bin/sail artisan manager:create
Main page: http://localhost
Mailhog: http://localhost:8025/