- Clone this repo
- Create your
database.yml
andapplication.yml
file bundle install
- Generate a secret key with
rake secret
and paste this value into theapplication.yml
rake db:create
rake db:migrate
rails s
- Set your frontend URL in
config/initializers/rack_cors.rb
- Set your mail sender in
config/initializers/devise.rb
- Decrease
token_lifespan
inconfig/initializers/devise_token_auth.rb
if the frontend is a Web-app. - Remove Facebook code with
git revert a8319a37ab8d038399a7a6bd74fe3869bb3f3ddc
- Config your timezone accordingly in
application.rb
.
http://docs.rails5apibase.apiary.io
With rake code_analysis
you can run the code analysis tool, you can omit rules with:
- Rubocop Edit
.rubocop.yml
- Reek Edit
config.reek
- Rails Best Practices Edit
config/rails_best_practices.yml
- Brakeman Run
brakeman -I
to generateconfig/brakeman.ignore
- Bullet You can add exceptions to a bullet initializer or in the controller