nested-sets-laravel-jquery
nested-sets-laravel-jquery copied to clipboard
Nested sets implementation using Laravel 4 and jQuery.
Nested sets with Laravel and jQuery
This is a quick implementation of nested sets using Laravel 4 and jQuery. Key features:
- Drag & drop sorting (using jqTree)
- In-place editing (using X-editable)
- Error notification and modal dialogs (using Alertify)
Under the hood, I rely on Aleksander Kalnoy's nested set package for Laravel that takes care of hierarchal data management.
Demo
All operations are done without page refresh:
Installation
- Clone/download this repo
- Configure your MySQL database in
./app/config/database.php
- Run
composer install
- Run
php artisan migrate
- Launch the web server with
php artisan serve
and navigate to localhost:8000
You may also wish to install Node.js and Grunt. By default, JS and CSS assets are served concatenated and minified. Enter ./public
and run:
-
npm install
to fetch Grunt packages -
grunt
to start the watch task
Contact
Hit me up on Twitter: @CasualMr