GithubHelp home page GithubHelp logo

acwltd / nifty Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 16 MB

A nifty little CMS written in Laravel 5 and AngularJS - intended for use in own projects

CSS 17.59% HTML 22.05% JavaScript 36.29% PHP 24.07% ApacheConf 0.01%

nifty's Introduction

Nifty CMS

A nifty little CMS written in Laravel 5.1 and AngularJS - intended for use in own projects

Changelog

  • Compatibility with Laravel >= 5.1.1
  • Removed authentication dependency on rydurham/Sentinel
  • Authentication now relying on framework's built-in authentication - extended to include user roles
  • Use of middleware to manage authorisation in the backend
  • Refreshed backend design

Steps to Follow

  1. Install a fresh copy of Laravel >= 5.1 and configure database and mail settings.

  2. Add the following to the composer.json file

    "repositories": [   
        {
     	     "type": "git",
            "url": "https://github.com/ACWLtd/Nifty"
        },
        {
            "type": "git",
            "url": "https://github.com/ACWLtd/Utility"
        }        
    ],	
  3. Add the following to the composer.json file, inside require

    "kjamesy/cms": "1.1.*",
    "kjamesy/utility": "dev-master" 
  4. Add the following inside composer.json file:

    "minimum-stability": "dev",
    "prefer-stable" : true
  5. Run composer update

  6. Add the Service Providers to the providers array in config/app.php file:

    Kjamesy\Cms\CmsServiceProvider::class,

    PS: You may want to add the CmsServiceProvider BEFORE the RouteServiceProvider so the package's routes take precendence over those in your app.

  7. Ensure you have a route named home in your app/Http/routes.php file. You could modify the default route to:

    Route::get('/', ['as' => 'home', function() {
        return View::make('welcome');
    }]);
  8. Remove the framework default migrations inside database/migrations

  9. Publish the package files (migrations, views and assets):

    php artisan vendor:publish
  10. Run the migrations:

 ```shell
 php artisan migrate
 ```
  1. Inside config/auth.php change model value to Kjamesy\Cms\Models\User::class, and email (inside password) to 'cms::emails.password',

  2. Inside app/Http/Middleware/RedirectIfAuthenticated.php change redirect('home'); to redirect(route('home'));

  3. Assuming default configuration, visit /admin and login with username jamesy and Password password

  4. You now deserve a biscuit, go on!

nifty's People

Watchers

James Cloos avatar James Ilaki avatar Ling Cao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.