0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Generates Twitter Bootstrap based admin panel with scaffolder. Project is quite opinionated, requires Rails 4, SASS, SimpleForm, Kaminari and Devise.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 1.5
~> 10.0
~> 3.0

Runtime

~> 3.2
~> 0.16
>= 4.0.0
>= 4.0.0
>= 3.1.0.rc1
 Project Readme

Admin Panel Build Status Code Climate Gem Version

This gem has been created as a recruitment task I was given. It's a set of generators to create administration panel for your website.

Installation

Start with adding these gems to your Gemfile:

gem 'admin-panel', '~> 0.1.5'
gem 'devise', '~> 3.2'
gem 'simple_form', '3.1.0.rc1'
gem 'bootstrap-sass', '~> 3.1'
gem 'kaminari', '~> 0.16.1'

Then do bundle install and run the installer:

$ rails generate admin_panel:install

Using the scaffolder

The scaffolder has basically the same syntax as the Rails one, except there's currently no support for custom namespace.

$ rails generate admin_panel:scaffold NAME [field:type field:type ...]

Running tests

Tests can be run using rake spec. They are written using rspec and ammeter.

Thanks

This gem was based mostly on two different pieces of software: bootstrap-generators and rails-admin-scaffold

I also took the liberty of copying kaminari bootstrap templates from kaminari-bootstrap

TODO

Currently this gem is pretty much one-evening project, I'm not sure if I'll continue it's development past this point.

Things that'd be nice to have:

  • support for anything more than Active Record
  • support for anything more than Erb (haml)
  • support for slim
  • namespace change support and more configuration options
  • kaminari/will_paginate support
  • I liked the idea of copying the files to your project during install at first but now it just seems silly; I should probably rewrite everything from scratch to work more similarly to Devise, including the ability to extend default controllers where necessary
  • I was also supposed to add Carrierwave support too but ran out of time
  • sorting
  • per page count selector