-
Notifications
You must be signed in to change notification settings - Fork 15
Quick Start
lxsameer edited this page Oct 5, 2014
·
15 revisions
In this article we will show you how to start you development using Faalis platform.
- First add
rails-assets
source to yourGemfile
:
source 'http://rails-assets.org'
NOTE: Remember to add this source not to replace the default one.
- Add
faalis
gem and it's dependencies to yourGemfile
like:
group :development, :test do
gem 'rspec-rails', '~> 3.0.0.beta'
gem "capybara"
gem "factory_girl_rails", "~> 4.0", :require => false
gem "database_cleaner"
gem "email_spec"
gem "cucumber-rails", :require => false
end
# Current Dashstrap theme for Faalis
gem "dashstrap"
gem "faalis"
- Iinstall your project dependencies using
bundle
bundle install
- Add this to your
config/environments/development.rb
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
In production,
:host
should be set to the actual host of your application.
- Ensure you have flash messages in
app/views/layouts/application.html.erb
. For example (Only if you want to change default layout):
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
- Perfrom
rails generate faalis:install_all
to copy necessary files.
NOTE: If you want to use
Mongoid
with Faalis use--mongoid
withfaalis:install_all
.
- Perform
rake db:migrate
and enjoy Faalis