Simple REST JSON API for creating events with different things
gem install bundler
bundle install
rake db:create:all
rake db:migrate
rake db:migrate RAILS_ENV=test
rake db:seed
bin/rails s
bundle exec rspec
http://localhost:3000/api/docs
thor metrics:all– run all metricsthor metrics:lint– run rubocop linter (Rubocop)thor metrics:smells– run smell detector (Reek)thor metrics:coverage– run coverage report
- Run
bundle updateto keep dependencies up-to-date - Make
thor metrics:allhappy, it should have at least 95% coverage, no failing tests, no rubocop problems and minor reek warnings - Update README if something changed and make sure that code properly documented
- Clean feature branches
- Tag final commit in git
- Ruby 2.2.x
- PostgreSQL 9.x
This may be a trouble with shared gems between old ruby version and new, to reinstall all gems, run following commands:
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
gem install bundler --no-ri --no-rdoc
bundle install