fedeagripa / stripe_base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe api base

How to use

  1. Clone this repo
  2. Install PostgreSQL in case you don't have it
  3. Create your database.yml and application.yml file
  4. bundle install
  5. Generate a secret key with rake secret and paste this value into the application.yml.
  6. Run yarn to install webpack needs
  7. rails db:create db:migrate
  8. rspec and make sure all tests pass
  9. rails s
  10. You can now try your REST services!

Optional configuration

  • Set your frontend URL in config/initializers/rack_cors.rb
  • Set your mail sender in config/initializers/devise.rb
  • Config your timezone accordingly in application.rb.

Code quality

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 generate config/brakeman.ignore
  • Bullet You can add exceptions to a bullet initializer or in the controller

Configuring Code Climate

  1. After adding the project to CC, go to Repo Settings
  2. On the Test Coverage tab, copy the Test Reporter ID
  3. Replace the current value of CC_TEST_REPORTER_ID on the config.yml file (.circleci/config.yml) with the one you copied from CC

About

License:MIT License


Languages

Language:Ruby 67.0%Language:CSS 20.5%Language:JavaScript 9.2%Language:API Blueprint 2.8%Language:Dockerfile 0.4%Language:HTML 0.1%