This repo is a test requirement.
Please follow these instruction:
-
Clone this repo to your local working directory.
-
(optional) Install laravel sail or you can just using docker.
-
run
cp .env.example .env
, then fill up your environment file, for example:APP_NAME=Laravel APP_ENV=local APP_KEY=base64:HLeMyYI7TSiv0Z5p9yLgD6Em/LuYYiupuGHnilD+GSI= APP_DEBUG=true APP_URL=http://sonarplatform-test.test APP_PORT=8088 LOG_CHANNEL=stack LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=sonarplatform_test DB_USERNAME=sail DB_PASSWORD=password FORWARD_DB_PORT=4306 BROADCAST_DRIVER=log CACHE_DRIVER=file QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120 MEMCACHED_HOST=memcached REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=smtp MAIL_HOST=mailhog MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS=null MAIL_FROM_NAME="${APP_NAME}" AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=mt1 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" SCOUT_DRIVER=meilisearch MEILISEARCH_HOST=http://meilisearch:7700 AUTH_USER="Sonar Admin" [email protected] AUTH_PASS=sonarplatform123
-
run
./vendor/bin/sail up -d
-
run
./vendor/bin/sail artisan migrate
-
run
./vendor/bin/sail artisan db:seed DemoSeeder
-
run
npm run dev
-
Open
http://localhost:<port>