Skip to content

luebbert42/laravel5-bootstrap-sass-webpack

Repository files navigation

UGLY Laravel 5.x Bootstrap

Installation

# clone repo
git clone https://github.com/luebbert42/laravel5-bootstrap-sass-webpack

# create env file
cp .env.example .env

# get all the fancy php stuff from web
composer install

# fix permissions (stolen from Symfony2 doc)
sudo -s

HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" storage
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" storage
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" bootstrap
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" bootstrap

# adjust default users if necessary
vim database/seeds/UserTableSeeder.php

# Database-Setup 
mysql -u root -e "create database bootstrap_laravel"

# change database name and connection settings in .env if necessary
vim .env

# run migrations in empty db and add example user
php artisan migrate --seed
 

# Fronend magic 
npm install 

# Run all Mix tasks...
npm  run dev

# Run all Mix tasks and minify output...
npm  run production

# watch
npm run watch

# start webserver && use any entry defined in /etc/hosts 
php artisan serve --host 0.0.0.0 --port 80

# login with user credentials given in database/seeds/UserTableSeeder.php

About

yet another skeleton for laravel 5.x apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published