Base application based on Laravel 5.1 (LTS) to ease our job.
Run this command from path/where/to/install
.
composer create-project nuwira/tunggorono path/where/to/install --prefer-dist --dev
Or you can clone this repository and then composer install
from the path.
Copy .env.example
file to .env
and then edit the .env
file, fill the database section.
APP_ENV=local
APP_DEBUG=true
APP_KEY=rKgGw2WsrWMAeO2fCJ7nUssERmp61uYW
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
For assets, please install NPM and Bower. From root directory, run this command.
Bower need NPM to run, so install the NPM requirements.
npm install
Install assets components using Bower:
bower install
It will install Bootstrap, jQuery, and Font-Awesome to bower_components
directory.
For configuration, check bower.json
file.
To compiled these assets, we use Gulp. Run the compilation using this command.
gulp
The assets will be placed in public/css
for CSS, public/js
for JS, and public/fonts
for fonts. Elixir will generate public/build
that will be used for assets versioning.
For configuration, check gulp.js
file.
Do migration to build the base data structure.
php artisan migrate --seed
Now you can login using this account.
Username: nuwira
Password: nuwira
The Laravel framework is open-sourced software licensed under the MIT license