Skip to content

esl51/octopus

Repository files navigation

Octopus

A Laravel-Vue SPA starter kit. Inspired by https://github.com/cretueusebiu/laravel-vue-spa

Installation

git clone [email protected]:esl51/octopus.git ./
composer update
cp .env.example .env
php artisan key:generate --ansi
php artisan jwt:secret --force --ansi
mkdir -p storage/app/public/media
php artisan storage:link

Edit .env and set your database connection details

php artisan migrate:fresh --seed
npm install

Usage

# Run backend
php artisan serve

Development

# Run frontend in development mode
npm run dev

Build

# Build frontend for production
npm run build

Test

# Unit and Feature tests
php artisan test
# Coverage (need xdebug)
XDEBUG_MODE=coverage php artisan test --coverage-html ./coverage