Project

dune-admin

0.0
No commit activity in last 3 years
No release in over 3 years
This is the admin of dune-investissement
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.0.0.rc1
>= 0.8.0, ~> 0.8.0
~> 4.0
 Project Readme

Dune::Admin

What

This is the admin of Dune, a Civic Crowdfunding platform. Originally create by neighborly developper

How

Include this gem as dependency of your project, adding the following line in your Gemfile.

# Gemfile
gem 'dune-admin'

And install the migrations:

$ bundle exec rake railties:install:migrations db:migrate

Dune::Admin is a Rails Engine, integrating with your (Dune) Rails application with very little of effort. To turn the engine on, mount it in an appropriate route:

# config/routes.rb
mount Dune::Admin::Engine => '/admin/', as: :dune_admin

And load our JavaScript:

//= require dune-admin

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Running specs

We prize for our test suite and coverage, so it would be great if you could run the specs to ensure that your patch is not breaking the existing codebase.

When running specs for the first time, you'll need to download Dune's source code to be tested against your version of the gem. The following command will install the dummy app in spec/dummy.

$ git submodule init
$ git submodule update

And before you go, you need to initialize a database for this "dummy" app.

$ cd spec/dummy
$ cp config/database.sample.yml config/database.yml
$ bundle install
$ RAILS_ENV=test rake db:create db:migrate
$ cd ../../

To run the specs just run:

$ bundle exec rake spec

License

Licensed under the MIT license.