https://github.com/codeclimate/coding-exercise-rails-template
Templated application for Rails based interviewing coding exercise
https://github.com/codeclimate/coding-exercise-rails-template
interviews
Last synced: 7 months ago
JSON representation
Templated application for Rails based interviewing coding exercise
- Host: GitHub
- URL: https://github.com/codeclimate/coding-exercise-rails-template
- Owner: codeclimate
- Created: 2021-06-24T17:52:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-24T20:32:14.000Z (over 4 years ago)
- Last Synced: 2025-03-01T03:24:09.470Z (11 months ago)
- Topics: interviews
- Language: Ruby
- Homepage:
- Size: 152 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
- clone this repo
- `bin/bundle install`
- `bin/rails spec` # to run tests
- `bin/bundle exec foreman start` # if you want to start up rails =)
# To reproduce this setup
steps borrowed from here, with a few extra tuning: https://relishapp.com/rspec/rspec-rails/docs/gettingstarted
Asusming a box with rails installed:
```sh
rails new coding-exercise
cd coding-exercise
echo 'gem "rspec-rails", group: [:development, :test]' >> Gemfile
echo 'gem "rexml"' >> Gemfile
echo 'gem "foreman"' >> Gemfile
sed -E -i "s/ruby '3.0.0'/ruby '~> 3'/" Gemfile
bin/bundle install
bin/rails generate rspec:install
bin/rails generate scaffold Exercise name:string
bin/rails db:migrate && rails db:test:prepare
echo "serve: bin/rails server" >> Procfile
echo "webpack: bin/webpack-dev-server" >> Procfile
```
You might want to drop a few extra files might not be cruicial or relevant for the exercise