4bbd93ded1
Adding the .ruby-verison file triggered previously un-run cops, specifically: This cop is designed to help upgrade to Ruby 3.0. It will add the comment `# frozen_string_literal: true` to the top of files to enable frozen string literals. Frozen string literals will be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+. More info on rubocop [Automatic-Corrections](https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections) |
||
---|---|---|
app | ||
bin | ||
config | ||
db | ||
lib | ||
public | ||
test | ||
.bowerrc | ||
.eslintrc.yml | ||
.gitignore | ||
.rubocop.yml | ||
.ruby-version | ||
.scss-lint.yml | ||
bower.json | ||
config.ru | ||
erd.pdf | ||
Gemfile | ||
Gemfile.lock | ||
Guardfile | ||
package.json | ||
Rakefile | ||
README.md | ||
rebuild-dev-db.sh | ||
start-dev.sh | ||
start-docker.sh | ||
start-server.sh |
Skill Assessment Quiz
This application manages quizzes intended to be used as pre-interview skill assessments.
Development
- Please use Guard when you are developing
bundle exec guard
- Honor RuboCop warnings
- Keep tests green
- Write tests around new development
- Always pull with rebase!
git config --global pull.rebase true
- Make sure to include any new development data needs in the fixture files
- test/fixtures/...
- feature branches are nice, but never merge develop down to them. Instead rebase feature branches onto develop.
Setup
- clone
- checkout develop
- bundle
- npm install
- bower install
- cp config/application.yml.sample config/application.yml
- edit and update proper values to application.yml
- rake db:setup
- rake db:migrate
- rake db:fixtures:load
Docker
You can develop in this app with a native rails install, if you prefer. However, there is also a docker image setup if you do not want to install all the supporting gems and libraries.
To use the docker container, you need to install and launch docker, which can be found here: https://www.docker.com/products/docker
Once the container is started, you can still edit files from your host project directory.
visit http://localhost:3000 like normal
There are some convenience scripts included to make starting the container and rails app easier.
./start-docker.sh
- Execute from terminal, on the host machine, in the project directory
- This will pull the image from dockerhub, if needed
- Create and start up container
Once in the container:
./start-dev.sh
- will spin up a dev session with tmux
./start-server.sh
- starts up just rails server for viewing application
TODOs and notes
- Question attachment path: http://dev.perficientxd.com/skill_assets/
- clean code / Confident Ruby