Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.6 KB

README.md

File metadata and controls

54 lines (30 loc) · 1.6 KB

README

This is a skeleton rails application for the Job Match Coding Challenge. It is recommended that you use this application as a starting point for your solution. Docker configuration has been provided to make it easy to run the application locally. You don't need to use Docker, but it is recommended to avoid any issues with your local environment.

Getting Started

With Docker

Ensure is installed Docker to run in a container.

Once Docker is installed on your system, you can use the following commands from the root of the application folder, e.g /var/www/job_match_test:

Build images:

docker compose build

Setup and Seed database:

docker compose run --rm app bin/setup

Run containers in background:

docker compose up -d Open http://localhost:3000/ in your browser.

Bundle Install:

All gems are installed on building the image, but if you need to install a new gem, you can run:

docker compose run --rm app bundle install

Run Specs

You are welcome to use any test platform, however, Rspec has been installed and configured, and can be run with:

docker compose run --rm app bundle exec rspec

For a single file:

docker compose run --rm app bundle exec rspec filename_spec.rb:line_number

e.g.

docker compose run --rm app bundle exec rspec spec/models/jobseeker_spec.rb:10

Get a Bash Session

docker compose run --rm app /bin/bash

This will spin up a new container and give you a bash session inside that container. From here you can get a rails console, run migrations, run specs, etc.