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.
All operations are done without page refresh:
- 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 packagesgrunt
to start the watch task
Hit me up on Twitter: @CasualMr