Rails Versioned API solution template for hipsters! (Ruby, Ruby on Rails, REST API, GraphQL, Docker, RSpec, Devise, Postgress DB)
Rails Versioned API solution template for hipsters!
bundle install
rake db:create
bin/rails db:migrate RAILS_ENV=development
bin/rails db:seed RAILS_ENV=development
foreman start -f Procfile.dev
rubocop
for Ruby lint.rubocop -a
for fixed some issues automatically.reek .
for analyzing code.brakeman
for static analysis and for security vulnerabilities.rails_best_practices .
in root app directory. Helps to find unused methods, missing indexes into database tables and many other things.To annotate all your models, tests, fixtures, and factories:
cd /path/to/app
annotate
To annotate just your models, tests, and factories:
annotate --exclude fixtures
To annotate just your models:
annotate --exclude tests,fixtures,factories,serializers
To annotate routes.rb:
annotate --routes
To remove model/test/fixture/factory/serializer annotations:
annotate --delete
To remove routes.rb annotations:
annotate --routes --delete
To automatically annotate every time you run db:migrate, either run rails g annotate:install or add Annotate.load_tasks to your Rakefile
. See the configuration in Rails section for more info.
.gitlab-ci.yml
file with your Heroku credentials..travis.yml
file with your Travis and Heroku credentials.Avoid repeating yourself, use pry-rails instead of copying the initializer to every rails project.
rails console
and in Rails console:show-models
.show-routes
.rake traceroute
.