shawnsandy/jarvis

A simple and smart theme management package for Laravel

v0.1.0 2018-01-24 17:26 UTC

This package is not auto-updated.

Last update: 2024-11-24 06:34:57 UTC


README

Jarvis is a simple and smart way to create and manage Laravel views (themes).

Alt text

Install

Via Composer

  • To install the Alpha version, add the following VCS repository add the following to your composer.json
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/shawnsandy/jarvis"
        }
    ],

  • From command line run the following
composer require shawnsandy/jarvis dev-master

Laravel 5.5x Bluma presets

  • Install

Install this preset via composer require laravel-frontend-presets/bulma. Laravel 5.5.x will automatically discover this package for you

Usage

Quick Start

  • Add the VALIDATION_KEY to you Laravel .env file min 8 characters, numbers letters, underscore, dashes
VALIDATION_KEY=1234567890_valdiation-key

  • Open routes\wep.php and add the following routes
Route::group(['prefix' => config("jarvis.base_url")], function () {
    // theme setup and install routes
    Jarvis::install_routes();
    // Demo pages
    Jarvis::routes();
});

Optional routes

Route::get('/', function () {
    return view(jarvis_views("index"), ["theme_class" => "front-page"]);
});

Route::get('/signin', function(){
    return view(jarvis_views("login"));
});

Route::get('/signup', function(){
    return view(jarvis_views('register'));
});

Route::get('/reset-password', function(){
    return view(jarvis_views('reset'));
});
  • To install and publish theme files go to yourapp.com/jarvis/themes/index, click on the Lets get started button.
  • Enter the validation_key in the and hit Publish Vendor files. You should be set to go.

Alt text

Alt text

  • To visit a demo page go to yourapp.com/jarvis/view/index

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker.

Credits

  • [Shawn Sandy][link-author]
  • [All Contributors][link-contributors]

License

The MIT License (MIT). Please see License File for more information.