A Rails application. Features a user and admin system with Facebook login. It is deployable to Heroku.
- pg for PostgreSQL
- jQuery
- Devise for authenticating users with OmniAuth for Facebook login
- Kaminari for pagination
- CarrierWave for file uploads
- MetaSearch for searching users
For testing and development:
- Rspec
- Cucumber with Capybara
- Database Cleaner
- Debugger
- Factory Girl
- Awesome Print
- Email Spec
- Shoulda
- Thin
- Make sure you have rvm and Ruby 1.9.2.
- Install dependencies from Gemfile:
bundle install --path vendor/bundle
. - Create your
config/database.yml
, create the database and run the migrations. - For Facebook login to work, export environment variables
FACEBOOK_APP_ID
andFACEBOOK_APP_SECRET
.
- After making questions and populating database it is critical to group sections into stages
- bundle exec rake db:create
- bundle exec rake db:migrate
- bundle exec rake surveyor:questions
- bundle exec rake db:seed
- In order to debug test you can add save_and_open_page call to a line where you would like to show page that is rendered
- bundle exec spork
- bundle exec rspec spec/
- Render glyph icons in code glyph(:lock, :white) =>
- Use raw_glyph for rendering inside link_to => link_to raw_glyph(:white) + “Some title”
- bundle exec rake surveyor FILE=surveys/get_viable_questions_leslie_v3-2-2.rb
- This code is now Open Source. It’s free to be used.
- This code is not actively maintained. But in need of urgent support, please create ticket or send email to [email protected]